We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
Hi All,
I want to rollup a value say FM (Fiscal Month) costs where I have a grouping in a Matrix visualuzation coming from the same table. So
for example:
customer contract FM01 FM02 FM03
navy stores 1030 5 0 200
0 100 10
The goal is:
navy stores 1030 5 100 210
Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
We can use the following measure to meet your requirement:
Measure =
VAR cus =
MAX ( 'Table'[contract] )
RETURN
IF (
cus = BLANK (),
BLANK (),
CALCULATE(
SUM('Table'[value]),
ALL('Table'[contract])
)
)
Then we can get the result like this,
If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to OneDrive For Business and share the link here.
Best regards,
Hi @Anonymous ,
We can use the following measure to meet your requirement:
Measure =
VAR cus =
MAX ( 'Table'[contract] )
RETURN
IF (
cus = BLANK (),
BLANK (),
CALCULATE(
SUM('Table'[value]),
ALL('Table'[contract])
)
)
Then we can get the result like this,
If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to OneDrive For Business and share the link here.
Best regards,
Why are you using the MAX function on a charactor string?
Hi @Anonymous ,
The purpose we use MAX function here is to get the value of the current filter context.
Because column names cannot be called directly in a measure. So We use the MAX function to get the value of current column. We can also use MIN function, they have the same role in this question.
Here is a simple maybe help you to understand.
BTW, pbix as attached.
Best regards,
User | Count |
---|---|
60 | |
56 | |
47 | |
39 | |
34 |
User | Count |
---|---|
93 | |
78 | |
66 | |
48 | |
47 |