Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap
HI All,
I need to write a DAX to create a measure that fetches the net% for the corresponding month in the previous fiscal year based on the selected value in the slicer.
My slicer has text type data in format Sep-fy23, oct-fy23 and so on. The data comes from period[month-year] table and starts from Sep-FY23.
I have a measure called net%(calculated at run time)
Now in my slicer if I select May-Fy24, then net% should display value for May-Fy23,
if I select Apr-Fy24, then net% should display value for Apr-Fy23,
So for any selected MMM-FYYY, my new dax should give me value for last FY.
I have written below dax which fetches the previous month-year in text format based on current slicer selection. Example if I select Jan-FY24, it return Jan-FY23. Now how can I leverage this formula to get Net% value returned for previous fiscal year
dax to fetch previous month-year based on current selection -
I have also created a dax to return net% for previous month-year based on current slicer selection, but its returning nothing. Not sure whats going wrong
Thankyou in advance.
Solved! Go to Solution.
Hi All,
DAX that worked -
Hi All,
DAX that worked -
Then i can suggest you to assign the index to Period and get the next or previuous accordigly based on the
l hope you can do it let m eknwo if you need help to do it. 🙏
Hey Sania,
Try Prev DAX --> i hope it will help
All the best
HI @Rajdeep My Period[Month-year] is of text data type. So I cannot apply date functions on it directly.
User | Count |
---|---|
91 | |
74 | |
71 | |
58 | |
55 |
User | Count |
---|---|
41 | |
38 | |
34 | |
32 | |
30 |