Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a calculation that I am having issues with. I want to create a stacked column chart where the total height is the overall groups percentage, but the stacks are a subset of those groups. Here is a mock example of the dataset
ID | Department | NumDays | Scheduled | DaysGroup |
111 | PEDIATRIC | 3 | 1 | 0-7 Days |
222 | PEDIATRIC | 0 | Open | |
333 | PEDIATRIC | 20 | 1 | 8-21 Days |
444 | SURGERY | 11 | 1 | 8-21 Days |
555 | SURGERY | 15 | 1 | 8-21 Days |
I want to show the bars in the chart by Department, and the stacks by DaysGroup. The bars respresent a percentage of the Scheduled vs All Rows. They should only use a calculation based on their respective department. As seen below, the example shows 3 tables, the numerators being used, the denominators being used, and the current calculation. The arrows show the various numbers that I am trying to use:
Link in case the image is not legible: Link for Report Example
Any help is greatly appreciated.
Solved! Go to Solution.
hi @aellison
Try with this:
%Scheduled = [SumScheduled]/CALCULATE([CountId],ALLEXCEPT(Table1,Table1[Department]))
hi @aellison
Try with this:
%Scheduled = [SumScheduled]/CALCULATE([CountId],ALLEXCEPT(Table1,Table1[Department]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
46 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |