Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi ,
I’m developing a report in powerbi I have two slicers one slicer with Year& Month combined in Date hierarchy and another slicer with type as YTD & selected month & trailing12months I have to calculate for the below listed in DAX could you please anyone help me
I'm New to DAX finding difficult to calculate the below
Data model:
Date table connected with 1 side to many side of sales table
Disconnected Type slicer table
Case 1: IF Year month slicer & type slicer if user selected the month then it should show the running total of sales amount till max of selected month
Case 2: IF Year month slicer & type slicer is blank then it should show the running total of sales amount from latest year from Jan to max month
Case 3: IF Year month slicer & type slicer is blank then it should show the month of sales amount from latest year Jan to max month
Case 4: IF Year month slicer & type slicer whichever month the user selected then it should show that month sales amount only
Case 5: IF Year month slicer & type slicer is blank then it should show the sales amount from latest year from Jan to max month
Case 6: IF Year month slicer & type slicer is blank then it should show the sales amount of last 12 months from selected month
urgent request can anyone please help me
Thank you.
I have taken a copy of Date table added in the model as previous Date and set the relationship as many side of Date table to one side of previousdate table and computed the below measure however it is not working could you please provide the email ID of yours so that i can send you the actual PBIX file
@NT92 you can upload your pbix to OneDrive or Google Drive and post a link for myself or another user to download. I'll take a look at it in the morning.
Hi @NT92
What you can do is create a measure that works like this...
SWITCH(
SELECTEDVALUE(DisconnectedSlicerTable[FieldName]),
"YTD", [Measure for YTD],
"Selected Month", [Measure for Selected Month]
--Repeat as necessary
)
Hope this helps!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |