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 everybody !
I have these kind of table :
And I don't understand why when I enter this measure :
I have the value of mai 2017 like that :
My goal is to have the last value but not at the last date because its empty..
Thanks
Best regards
David
Solved! Go to Solution.
You should actually be able to strip this down further:
DRC F = VAR MaxDate = CALCULATE ( MAX ( 'PVCE'[Date] ); 'PVCE'[DRC] <> BLANK () ) RETURN CALCULATE ( SUM ( 'PVCE'[DRC] ); 'PVCE'[Date] = MaxDate )
Hi David,
you're getting the may figure as it is the highest non blank figure, try the expression below and see if it does what you need (may not be the most elegant!):
DRC F = VAR MaxDate = CALCULATE ( MAX ( 'PVCE'[Date] ); 'PVCE'[DRC] <> BLANK () ) RETURN IF ( DISTINCTCOUNT ( 'PVCE'[Date] ) = 1; SUM ( 'PVCE'[DRC] ); CALCULATE ( SUM ( 'PVCE'[DRC] ); 'PVCE'[Date] = MaxDate ) )
You should actually be able to strip this down further:
DRC F = VAR MaxDate = CALCULATE ( MAX ( 'PVCE'[Date] ); 'PVCE'[DRC] <> BLANK () ) RETURN CALCULATE ( SUM ( 'PVCE'[DRC] ); 'PVCE'[Date] = MaxDate )
@Anonymous Perfect ! Thanks
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 |
---|---|
111 | |
94 | |
83 | |
67 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |