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 have scenario where Sales amount should be display based on the report filter. Example we have sales data on monthly basis and user can select a month from report filter. Related information is showing perfectly except one column which shows total sales as of the date (accumulated total as of selected date) which is selected at report filter.
We have two tables, one is fiscal year:
Year ID 2018
Month Name Jan-2018, Feb-2018, March-208.....
Period ID 1,2,3,4/.......
Second table : sales table
Month Name Jan-2018. Feb-2018, Mar-2018.....
Period 1,2,3......
Sales Value $$$$,$$$$,$$$$
Now when user select Mar-2018 from report filter, accumulated value should show (Jan2018 + Feb-2018 + Mar-2018) and if user select June-2018 then (Jan to June).
Please help.
Solved! Go to Solution.
Hi akhancertus,
If you want user selection value can interact with the measure. You should use slicer chart instead of report level filter. You can create measure using DAX as below:
Result = IF ( SELECTEDVALUE ( Table[Date] ) = "Mar-2018", "Jan2018 + Feb-2018 + Mar-2018", IF ( SELECTEDVALUE ( Table[Date] ) = "June-2018", "Jan2018~June2018" ) )
Regards,
Jimmy Tao
Hi akhancertus,
If you want user selection value can interact with the measure. You should use slicer chart instead of report level filter. You can create measure using DAX as below:
Result = IF ( SELECTEDVALUE ( Table[Date] ) = "Mar-2018", "Jan2018 + Feb-2018 + Mar-2018", IF ( SELECTEDVALUE ( Table[Date] ) = "June-2018", "Jan2018~June2018" ) )
Regards,
Jimmy Tao
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |