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.
I'm trying to create a visual which shows current month vs. last month's sales amount broken down by dealer. This visual has to update on a monthly basis based on the current sales data's max date. right now I'm filtering manually, there must be a better way to do this.
Solved! Go to Solution.
Hi @bo_wang5 ,
You can use a measure as a filter like so:
Measure =
VAR PreviousMonthStart =
EOMONTH ( TODAY (), -2 ) + 1
VAR CurrentMonthEnd =
EOMONTH ( TODAY (), 0 )
RETURN
IF (
MAX ( 'Table'[Date] ) >= PreviousMonthStart
&& MAX ( 'Table'[Date] ) <= CurrentMonthEnd,
1
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @bo_wang5 ,
You can use a measure as a filter like so:
Measure =
VAR PreviousMonthStart =
EOMONTH ( TODAY (), -2 ) + 1
VAR CurrentMonthEnd =
EOMONTH ( TODAY (), 0 )
RETURN
IF (
MAX ( 'Table'[Date] ) >= PreviousMonthStart
&& MAX ( 'Table'[Date] ) <= CurrentMonthEnd,
1
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This doesnt seem to work in latest version of PBI anymore. Downloaded the file but it doesnt produce any results in the chart. ☹️
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 |
---|---|
114 | |
98 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |