Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I'm trying to add 2 totals to a matrix
I want it to be something like this:
**the value inside the matrix is counted for each step base on the categories (reason)
** the new total is based on a measure and it sums the money, I don't want the value to appear in the rows
I only want to add the total sum of this measure under the grand total (under the count total)
reason/steps | step1 | step2 | step3 | step4 | step5 |
aa | 30 | 20 | 10 | 5 | 1 |
baaa | 45 | 25 | 25 | 12 | 8 |
csd | 10 | 0 | 0 | 0 | 0 |
total | 85 | 45 | 35 | 17 | 9 |
new total | 1555$ | 4845$ | 110$ | 155$ | 151$ |
Solved! Go to Solution.
Hi @ReutAtias12
You can create a disconnected table that contains all reasons + "Total" let's call it 'SlicerReason'. Then you can place SlicerReaon[Reson] in the rows of the matrix and the following measure in values of the matrix
ResultMeasure =
IF (
HASONEVALUE ( ReasonSlicer[Reason] ),
SUMX (
VALUES ( ReasonSlicer[Reason] ),
IF (
ReasonSlicer[Reason] = "Total",
[CountMeasure],
CALCULATE ( [CountMeasure], 'Table'[Reason] = ReasonSlicer[Reason] )
)
),
[MoneySumMeasure]
)
Hi @ReutAtias12
You can create a disconnected table that contains all reasons + "Total" let's call it 'SlicerReason'. Then you can place SlicerReaon[Reson] in the rows of the matrix and the following measure in values of the matrix
ResultMeasure =
IF (
HASONEVALUE ( ReasonSlicer[Reason] ),
SUMX (
VALUES ( ReasonSlicer[Reason] ),
IF (
ReasonSlicer[Reason] = "Total",
[CountMeasure],
CALCULATE ( [CountMeasure], 'Table'[Reason] = ReasonSlicer[Reason] )
)
),
[MoneySumMeasure]
)
Thanks!
@ReutAtias12 You could potentially adapt this approach. The New Hotness (Custom Matrix Hierarchy) - Microsoft Power BI Community
Another potentially approach would be Deneb
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
48 | |
24 | |
20 | |
14 | |
12 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
18 |