Forum Discussion
Help with Matrix
- Anonymous2 years ago
Hi akhaliq7
You can add a relative date filter or a relative date slicer to show last 2 months.
Create a relative date slicer or filter in Power BI - Power BI | Microsoft Learn
Or try a measure like
Measure = IF ( MONTH ( MAX ( DimDate[Date] ) ) < MONTH ( TODAY () ), COALESCE ( [your measure], 0 ), BLANK () )BTW, it seems you are computing something like YTD, you may try something simpler for the measure
CALCULATE ( [measure], DATESYTD ( 'Date'[Date] ) )Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hi akhaliq7
You can add a relative date filter or a relative date slicer to show last 2 months.
Create a relative date slicer or filter in Power BI - Power BI | Microsoft Learn
Or try a measure like
Measure =
IF (
MONTH ( MAX ( DimDate[Date] ) ) < MONTH ( TODAY () ),
COALESCE ( [your measure], 0 ),
BLANK ()
)
BTW, it seems you are computing something like YTD, you may try something simpler for the measure
CALCULATE (
[measure],
DATESYTD ( 'Date'[Date] )
)
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
- akhaliq72 years agoPost Prodigy
Thanks for your help. I used the relative date filter and will try out the measures later.