March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi
Does enyone know a way that I can show the sum of a value based on a previous year to users slider selection (e.g. user selects 1st Oct 2020 to 4th Nov 2020 I would like to calculate 1st Oct 2019 to 4th Nov 2019). The results must also be able to be filtered by dimensional selections and displayed in table with dimensional records as the rows.
This is based on a star schema data structure with date, fact and other dimensional tables (fact can be joined to date via key or date fields).
I have previously tried posting the specific challange I am facing with no luck so I thought I'd see if someone can help me with the concept first and then I will design my solution around it.
Any help would be greatly appreciated.
For those that are interested, this is my original post. https://community.powerbi.com/t5/Desktop/Prior-year-sales-based-on-slider/m-p/1763135#M691720
Solved! Go to Solution.
@Anonymous , Try a measure like this with date table, slicer should be on date table
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
@Anonymous , Try a measure like this with date table, slicer should be on date table
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
@amitchandak Thank you this is the solution.
I have actually tried this before but had the table join Cross filter direction set to both. Changing them to Single cracked it.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |