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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
mohassan99
Helper II
Helper II

Total & Part Stacked Column Graph

How do I create a stacked column graph, such that 25 total from one field, n of which are have some characteristic from another field are shown in one column where the top is at 25 not 25+n? Do I have to calculate a, 25 - n, field? If so, where can I get a quick intro/review of calculated fields basics so I understand how that works in the Power BI data view? (Should I move this question to the Dax forum?)

 

I think this requires only 2 columns for illustraction, ID and Over SLA. I want a column with TOTAL ID count and how many of them have OVER SLA = 1.

 

ID Over SLA
12651
18501
19301
19421
18931
21051
21771
22041
22231
23131
23701
23961
24591
24611
24891
25001
25021
25071
25211
25231
25241
25261
25301
25311
25361
25391
25401
25421
25521
25581
25771
25801
25811
25841
25861
25871
25881
25891
25901
25951
25981
26001
26011
26071
26141
26161
26201
26211
26221
26241
26030
26261
26291
26311
26361
26371
26391
26401
26421
26431
26471
26501
26511
26521
26561
26581
26591
26601
26611
26621
26631
26651
26661
26671
26681
26691
26701
26711
26721
26731
26741
26751
26761
26771
26781
26791
26801
26811
26821
26831
26841
26851
26861
26871
26881

 

1 ACCEPTED SOLUTION

You are welcome.  My solution will work in all versions.  I have written 2 measures to solve the question (you can see them in the Fields pane of the image in my previous message).


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

Thank you, but I have an older version of PowerBI. I can't see how to got these results. If you created a new calculated variable I couldn't see it.  

You are welcome.  My solution will work in all versions.  I have written 2 measures to solve the question (you can see them in the Fields pane of the image in my previous message).


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Carousel June 2024

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

2
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.