The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have to show trend for last 13 months.
Data I have is at weekly level (first day of week).
Through the slicer when a month is selected, the visual should show the current month in terms of weeks and then the previous 12 months as month ends data.
Can someone please help me on how to go about it.
Thanks,
Solved! Go to Solution.
Hi @kruzack ,
Please have a try.
Create a measure.
Last 13 Months =
VAR SelectedDate = MAX(Calendar[Month])
VAR DateDiff = DATEDIFF(Sales[Date], SelectedDate, MONTH)
RETURN
IF(DateDiff <= 0 && DateDiff > -13, 1, BLANK())
Solved: Show last 13 months based on user single slicer se... - Microsoft Fabric Community
Show last 13 Months from Slicer Selection in Power BI (DAX) - YouTube
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @kruzack ,
Please have a try.
Create a measure.
Last 13 Months =
VAR SelectedDate = MAX(Calendar[Month])
VAR DateDiff = DATEDIFF(Sales[Date], SelectedDate, MONTH)
RETURN
IF(DateDiff <= 0 && DateDiff > -13, 1, BLANK())
Solved: Show last 13 months based on user single slicer se... - Microsoft Fabric Community
Show last 13 Months from Slicer Selection in Power BI (DAX) - YouTube
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
8 | |
8 |