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.
Hi, a time intelligence problem. Suppose i have 3 year data: 2021 2020 and 2019 Now I have all 12 months data in 2019, 2020 but only 3 months data in 2021. Indian fiscal year = April (start), March (end)
I need a dax for: When I do the previous year calculation, suppose for 2021, then it gives me only 3 months of 2020 data (as i have only april may jun data in 2021), but when I do previous year calculations for 2020, it gives me all 2019 data (as I have all months data in 2020). Please help?
Solved! Go to Solution.
You need to use a proper filter rather than the PREVIOUSYEAR() function
CALCULATE(
[YourMeasure]
,FILTER(
ALL('DimDate')
,'DimDate'[Year] = MAX('DimDate'[Year])
)
)
You need to use a proper filter rather than the PREVIOUSYEAR() function
CALCULATE(
[YourMeasure]
,FILTER(
ALL('DimDate')
,'DimDate'[Year] = MAX('DimDate'[Year])
)
)
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 |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |