Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello! Can't seem to get the correct value for sales of previous period when multiple sliders are involved. Already tried multiple solutions but I can't figure out what's missing. All the data are placed in a single table already to simplify the visualization.
DeptSalesByType Table columns:
Sales (Fixed Decimal Number)
Department (Text)
Transaction_date (Whole Number)
Type (Text)
FullDate (converted Date/Time from Transaction_Date)
4 Sliders:
Year (2017 | 2018 | 2019 | 2020)
Month (Jan | Feb | Mar | .... Nov | Dec)
Type ( All | Loyalty | Non-Loyalty)
Department (Cosmetics | Kids | Mens | Womens)
Measures:
Solved! Go to Solution.
Actually managed to solve this. Had to create a duplicate table of the FullDate and it worked. Not sure if it's the right way though as I made the date redudant.
Actually managed to solve this. Had to create a duplicate table of the FullDate and it worked. Not sure if it's the right way though as I made the date redudant.
You only a Full Date column, I don't see how did you get the Start and End period, can you just share sample pbix.
Paul Zheng _ Community Support Team
Hi,
Here they are:
Start Current Period = FIRSTDATE(DeptSalesByType[FullDate])
End Current Period = LASTDATE(DeptSalesByType[FullDate])
Start Previous Period = [End Previous Period]-[Days Current Period]
End Previous Period = [Start Current Period]-1
Days Current Period = DATEDIFF([Start Current Period],[End Current Period],day)
This is a question about DAX, not Power Query... Can you please post this on the right forum?
A very quick hint why this does not work can be found at
Understand star schema and the importance for Power BI - Power BI | Microsoft Docs
and
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |