Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Want measures from category on the graph, not the measures from Totals

Hi experts,

 

Following is my requirement in snapshot: There are two slicers Location & employees:

 

Capture.PNG

 

'Fortnight Payment' is a common measure for both the locations calculated based on employees selected.

'A Billings' & 'B Billings' are two measures calculated from different tables. I designed the report with Matrix visual.

'Difference' column is populated by two measures- [ A difference] & [B difference]. In grand Totals, [Loc A difference] & [Loc B difference] columns automatically calculate the difference by subtracting 'Total Fortnightly payment' from 'A Billings' and 'B Billings'(highlighted in yellow in snapshot below)

Now I want this data on 'Line & Stacked column chart' graph. I specified line values as 'A Difference' & 'B difference'. Automatically, on the graph the line values pick up the Difference columns from totals(highlighted in yellow in snapshot below).  In Line values I want "Difference" columns of location A & B (marked in red in snapshot below), not the  Difference columns from totals (highlighted in yellow in snapshot below). 'Total Billings' & 'Difference' (marked in blue) under totals are measures I created.

 

Capture_bill.PNG

 

Please suggest/help.

 

Many thanks in advance,

Meena

8 REPLIES 8
Anonymous
Not applicable

For some reason, I can't edit my orignal message. Here is the graph I get:

Capture_graph.PNG

 

As you see, the values on x-axis are from 'ADifference' & 'BDifference' columns from totals (highlighted in yellow in matrix snapshot).  I want 'ADifference' & 'BDifference' values of location A & B (marked in red in matrix snapshot).

Not sure I got it completely. But have tried dragging location (Which has value a,b) on the legend

Anonymous
Not applicable

@amitchandak  thanks for your suggestion. Yes, including location on legend gives me correct values. But On line graph if I include 'Location' on Legend, i can't have two measures 'A difference' & 'B difference' in line values. It allows only one measure. 

Tried 'Line & stacked column' chart. It works with the two measures in line values but the graph doesn't make much sense & shows incrrect values for the location not in focus. 

For example: for 10/9/2019 the expected A Difference & B difference are following

new_capture.PNG

But on the graph A difference is incorrect, it should be 28448.66. However, Location B difference is correct 

Location A DifferenceLocation A DifferenceLocation B DifferenceLocation B Difference

 

Can you a measure which do not filter on A and B and try

Like fortnightly payment and billing and their diff. 

Anonymous
Not applicable

@amitchandak  Yes 'Total' measures - Total Fortnight payment, Total Billings & Difference which are not filtered by location, show correct values on the graph..

But do not show correct value when you use location as a legend?

Anonymous
Not applicable

@amitchandak   it does show correct values for any of the total measures (which I can use only one measure in Line value) when location is used as legend.

Anonymous
Not applicable

 

@v-juanli-msft@v-shex-msft ,  @Greg_Deckler  and @v-qiuyu-msft  you had provided a solution to similar issue in a post, I can't get that solution to work for me. Your help is much appreciated. Apology for tagging you in case it causes any inconvenience to you.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.