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.
Hello Community,
I have a unique requirement, In the dataset, I do not have date columns, but the user wants to see only the last six months' data.
In February, a user wants to see data from February to the last six months, February to October.
I do not have a date table in the dataset.
***User wants does not want to use any filter or slicer.
Raw Data Set | |
Month Name | Amount |
Jan | 10 |
Feb | 20 |
Mar | 30 |
Apr | 40 |
May | 50 |
June | 60 |
July | 70 |
Aug | 80 |
Sep | 90 |
Oct | 100 |
Nov | 110 |
Dec | 120 |
Final Result | |
Month Name | Amount |
Jan | 10 |
Feb | 20 |
Mar | 30 |
Oct | 100 |
Nov | 110 |
Dec | 120 |
Solved! Go to Solution.
It's little tricky as you want to Data from March,Feb,Jan,Dec,Nov, and Oct if the latest month is Feb. So as per your need I developed DAX.
First create Month No. Column as you don't have proper Date column.
It's little tricky as you want to Data from March,Feb,Jan,Dec,Nov, and Oct if the latest month is Feb. So as per your need I developed DAX.
First create Month No. Column as you don't have proper Date column.
@tejapowerbi123 , do you have a year. because without that how to work on last 6 month
With month and year, you can create a date
Date = "01-"&[Month] & [year] //change data type as date.
Now you can use relative date filter.
Thank you so much so for your suggestion Amit.
Certainly I can add a year column,
Do you want me to create a new Date table or a new calculated column?
Jan:Date = "01-"&[Month] & [year]
Feb:Date = "02-"&[Month] & [year]
March:Date = "03-"&[Month] & [year]
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |