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.
How do i get the YTD to NOT use this months data for current months? Example below: Today we are in september, and the YTD measure is pre-filling October, November, and December with this months data.
How do I make it blank? Thanks.
Solved! Go to Solution.
Hi @Anonymous ,
This is usually the case if you have a separate Facts and Dates tables. Your Dates table has the full year but Facts is only up to a particular date. In that case, you may try this measure:
Running Sum =
IF (
MAX ( Dates[Date] ) <= CALCULATE ( MAX ( 'Facts'[Date] ), ALL ( 'Facts' ) ),
CALCULATE (
[Aggregation Measure],
FILTER ( ALL ( Dates ), Dates[Date] <= MAX ( Dates[Date] ) )
)
)
Proud to be a Super User!
Hi @Anonymous ,
This is usually the case if you have a separate Facts and Dates tables. Your Dates table has the full year but Facts is only up to a particular date. In that case, you may try this measure:
Running Sum =
IF (
MAX ( Dates[Date] ) <= CALCULATE ( MAX ( 'Facts'[Date] ), ALL ( 'Facts' ) ),
CALCULATE (
[Aggregation Measure],
FILTER ( ALL ( Dates ), Dates[Date] <= MAX ( Dates[Date] ) )
)
)
Proud to be a Super User!
Hi @Anonymous
Add a new column in your date table
Today and Before = IF([Date]<=TODAY(),1,0)
Click on the visual, go to the filter pane, add [Today and Before] in it and select 1.
Unfortunately this didn't do anything for me.
@Anonymous , Use the date from month year is coming in visual
if(Max(Date[date]) >Today(), blank() , [YTD])
if(Max(Date[date]) > eomonth(Today(),0), blank() , [YTD])
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 |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |