March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
This is my table:
I don't know why, but the cross total at the bottom is right although the values in some cols are wrong. You can calculate by yourself, the result for nearly every column is "wrong". The number itself is right but with the numbers shown in the table it should be another result. Do you know why the measure doesn't calculate right although the result at the bottom is still right?
Here is my measure:
M_C running total in Date = CALCULATE( [M_E]; FILTER( ALLSELECTED('Master'[Date]); ISONORAFTER('Master'[Date]; MAX('Master'[Date]); DESC) ) )
Here is the M_E measure:
M_E = sumx(master; (ABS(Master[Rev]*1000)*related('Product'[Enabled])*related(Risk[Risk_Enabled])*related('Status'[Enabled])))
I show M_E in a separate table and in this table the values are ok. I don't know why it works in this table and after the M_C measure it doesn't work properly
Hi mafioso,
Modify DAX formula like below and check if it can work:
M_C running total in Date = CALCULATE ( [M_E]; FILTER ( Master; ISONORAFTER ( 'Master'[Date]; MAX ( 'Master'[Date] ); DESC ) ); ALLSELECTED ( 'Master'[Date] ) )
Regards,
Jimmy Tao
@v-yuta-msft Ok i finally found the problem. Can you help me to fix it?
I marked the lines red. I need the value from 2019 in every other column.
So I want it to look like that:
-256 -768 -768 -768 -768 -768
Hi mafioso,
What's the logic of values you want to achieve from "2019 in every other column"? Could you give more details about your table and measure you are using and also more details about your expected requirement?
Regards,
Jimmy Tao
Thanks for your answer but that is not really the answer i was looking for. I want to have a cumulative total by year and somehow some values are not counting. Your solution gives me the correct numbers, now I need to summarize them.
For example:
2018: 5 (5)
2019: 9 (4)
2020: 16 (7)
2021: 20 (4)
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 |
---|---|
108 | |
73 | |
53 | |
52 | |
44 |
User | Count |
---|---|
163 | |
110 | |
69 | |
60 | |
51 |