Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

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

 

  • 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).

3 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      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.  

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        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).