I have two columns (EBELN - Data Type is Text), (MATKL - Data Type is Text). I want to add them to tool-tips but it is shown as count.
How can I show it as text?
The trick to remember here is that your chart is aggregating data. In other words, for a single date (BEDAT), there may be many MENGE values that are either being summed or averaged or counted.
To create a text tooltip, you can't drag in a text column because, while 3 MENGE values can be easily summed, 3 corresponding tooltip values can't be summed.
What you need to do is create a measure that calculates the text based on the aggregated MENGE values. For example:
Text Tooltip = IF(SUM(Sheet1[MENGE])>100,"This is excellent","This is terrible")
You can then drag that text measure into the tooltip field (because you've said exactly what you want the text to be regardless of whether you've got one MENGE value, or 3, or 300 for a single BEDAT).
There's more information and code samples in the Power BI forums, for example here: https://community.powerbi.com/t5/Desktop/How-can-I-make-Tool-tips-display-text-instead-of-count/td-p/44582
Dustin Ryan also has a good blog post on this here: https://sqldusty.com/2016/06/29/5-more-power-bi-tips/
Related
I am trying to display the outcome scores on one Excel sheet into another Excel sheet based on the outcome name and course.
If the text in Sheet1!C2=communication and Sheet1!E2=Comm 2010, then display Sheet1!D2 on Sheet2!B3.
If the text in Sheet1!C4=information* and Sheet1!E4=Commm 3000, then display Sheet1!1D4 on Sheet2!C5.
Need to be able to use Wildcard when checking the text.
If the text in Sheet1!C6=communication and Sheet1!E6=Comm2010, but there is no number in Sheet1!D6, leave Sheet2!B5 blank
I have played around with a few different IF AND formulas, but I can't get the data displayed correctly.
Right now, I am building a pivot table from the data in Sheet1, then taking the table and formatting it to match the table on Sheet1 then using =IF(Pivot!C7="","",Pivot!C7). This works, but building a pivot table for each student and then formatting it to match Sheet1 is a time drain.
I'm really hoping there is a better way to do this.
Thank you!
Since you are compiling outcomes on a per-student basis and not in total it is safe to use the SUMPRODUCT() function:
The formula below is used in B3
=SUMPRODUCT((Sheet1!$E$2:$E$6=Sheet2!B$1)*(Sheet1!$C$2:$C$6=Sheet2!$A3)*(Sheet1!$D$2:$D$6))
and can be copied across and down throughout B3:C4
The formula used in B5 is different, because of the 'wildcard criterion'
=SUMPRODUCT((Sheet1!$E$2:$E$6=Sheet2!B$1)*(LEFT(Sheet1!$C$2:$C$6,11)="Information")*(Sheet1!$D$2:$D$6))
(unless you are using Microsoft 365, having the formula directly suppress 0 values essentially entails doubling it in length so, as an alternative, given the small output range, a custom-number format has been implemented, which effectively doesn't display 0 in a cell where that is the formula result)
I have one tabular report to track the performance according to the month... if the difference is in positive values then need to show "GREEN UP ARROW" icon and if the difference is in negative values then need to show it in "RED DOWN ARROW".
Required the above output into one single column not in to multiple column like in the below screenshot
I have tried the UP and Down Arrows in my report but I am unable to get the result in to one column.
You can use conditional formatting to achieve this. Edit Cell Elements on your visual, turn on Icons for the required series, then set the icon options as follows:
This displays as:
so, I got 3 xlsx full of data already treated, so I pretty much just got to display the data using the graphs. The problem seems to be, that Powerbi aggregates all numeric data (using: count, sum, etc.) In their community they suggest to create new measures, the thing is, in that case I HAVE TO CREATE A LOT OF MEASURES...Also, I tried to convert the data to text and even so, Powerbi counts it!!!
any help, pls?
There are several ways to tackle this:
When you pull a field into the field well for a visualisation, you can click the drop down in the field well and select "Don't summarize"
in the data model, select the column and on the ribbon select "don't summarize" as the summarization option in the Properties group.
The screenshot shows the field well option on the left and the data model options on the right, one for a numeric and one for a text field.
And, yes, you never want to use the implicit measures, i.e. the automatic calculations that Power BI creates. If you want to keep on top of what is being calculated, create your own measures, and yes, there will be many.
Edit: If by "aggregating" you are referring to the fact that text values will be grouped in a table (you don't see any duplicates), then you need to add a column with unique values to the table so all the duplicates of the text values show up. This can be done in the data source by adding an Index column, then using that Index column in the table and setting it to a very narrow with to make it invisible.
I have a scatter chart and a db view to get the necessary data from it. This view only returns the names and its's respective values and is enough to make my chart just fine. Problem is that i want to draw a Constant Line on my chart but i want to read its value from a configuration table that i have in my DB. Currently when i try to add the Y-axis constant line in power bi, it only allows me to type the static value and it won't get the data dynamically from somewhere else; a different key-value based table that i already mentioned above. How can i achieve this?
Here's the images:
Thanks in advance.
There is not direct solution for this problem but this workaround did the job for me:
Create a measure (may work with a calculated column that will later be summarized as average, MAX, MIN, etc.). The measure (or aggregation of calculated column) will have the dynamic value of the constant line you want to display. In my case, I used a measure and I am showing a constant line that changes value depending on the current month.
Create your visual without the constant line first. In my case, I am using the clustered bar chart.
Add the measure with the constant value to your list of values of the visual. The value will appear in your visual. In my case, it appeared as another horizontal bar. You'll hide it in a later step.
Go to the analytics tab of the visual and instead of adding a new Constant Line, add a Min Line, Max Line, or whatever line makes more sense for your measure, column, visual, etc. as long as the option you choose allows you to select the measure/column you added in the previous step. From the formatting options of the line you added, click on the dropdown labeled "Measure" and pick the measure that has the value of the constant line.
Finish formatting the line as you want (title, text position, color, etc.).
Go back to the Fields tab of the visual and drag the measure with the constant value from the Value group to the Tooltips group. The value will now disappear from the visual but the constant line should remain.
(optional) If you do not want the value of the now dynamic constant line to show in the Tooltip of the visual, create a custom visual. However, keep in mind that if the user is viewing the report in a way that doesn't support report page tooltips, the user will see the default Tooltip including the value of the dynamic constant line you just created.
In first sheet original data and in second modify data so i want to compare both sheet data and mark with color if sheet1 and sheet2 data not match.
I have two different sheet with data as per below.
Sheet1:
--------A-----B-----C
1-------T10---T10---T40
2-------T34---T65---T20
Sheet2:
--------A-----B-----C
1-------Z10---T10---T40
2-------T34---T65---T20
ABC is represent the columns.
1-2 is represent row.
I can write the conditional format on single cell to check if Sheet1.A1 <> Sheet2.A1 and change the background colour.
conditional formatting : "Cell Value is" "equal to" $Sheet1.A$1 Cell Style "BACK_COLOR_RED".
But the problem is that how can i apply this same conditional format on sheet all cell to compare both sheet as manually write the same formula
on one by one cell is not feasible.
I got the answer, I hope below answer will also help to other people to run time compare two sheet.
Step 1:
Step 2:
Step 3:
output