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,
Currently, I am using the data from SAP BW source using Direct Query method.
My requirement is : We have multiple slicers regarding Month, Quarter , Year in report and One card should be added on top of report.Whenever user will select any slicer using (Quarter, Month,Year), Based on the selection ,Selected Value of "Quarter &Year' or "Month&Year" should display in that card.
But I am facing the issue with the SELECTEDVALUE and ISFILTERED using this data source.
Does anyone has any idea how to capture the selected value of slicers when working with SAP BW in Direct Query?
Any suggestions would be helpful 🙂
Solved! Go to Solution.
Hi @Anonymous ,
You could create a measure like the formula below. The values that are from the two functions need to be matched with your slicer. And for multiple slicers in your report, you could change IF function to SWITCH.
Month &Year = var Mon = SELECTEDVALUE('Table'[Month]) var Ye = SELECTEDVALUE('Table'[YEAR]) return IF(ISFILTERED('Table'[Month]) && ISFILTERED('Table'[YEAR]),Mon&" & "&Ye,BLANK()) Quarter & Year = var Quar = SELECTEDVALUE('Table'[Quarter]) var Ye = SELECTEDVALUE('Table'[YEAR]) return IF(ISFILTERED('Table'[Quarter]) && ISFILTERED('Table'[YEAR]),Quar&" & "&Ye,BLANK())
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You could create a measure like the formula below. The values that are from the two functions need to be matched with your slicer. And for multiple slicers in your report, you could change IF function to SWITCH.
Month &Year = var Mon = SELECTEDVALUE('Table'[Month]) var Ye = SELECTEDVALUE('Table'[YEAR]) return IF(ISFILTERED('Table'[Month]) && ISFILTERED('Table'[YEAR]),Mon&" & "&Ye,BLANK()) Quarter & Year = var Quar = SELECTEDVALUE('Table'[Quarter]) var Ye = SELECTEDVALUE('Table'[YEAR]) return IF(ISFILTERED('Table'[Quarter]) && ISFILTERED('Table'[YEAR]),Quar&" & "&Ye,BLANK())
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
77 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |