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,
I need ninjas' help here.
I try to calculate previous month amount in such a way, that later on I can put it as a KPI in a card visual. It should always show previous month amount relatively to what is seleceted in the date slicer. I tried PARALLELPERIOD(), but honestly I don't fully get how it functions as it was not showing me the right numbers. I also tried the syntaxis with Selected_Month = MAX(Selected_Month - 1), but I didn't succeed as I get just blank card.
Now I am using this expression:
Solved! Go to Solution.
Hi @Anonymous
Got it, if you have resolved the issue, please mark the reply as answer to close this thread.
Regards,
Hi @Anonymous
You may create a measure like below.If it is not your case,please share some data sample and expected output. You can upload the .pbix file to OneDrive and post the link here. Do mask sensitive data before uploading.
Measure = CALCULATE ( COUNT ( Data[Products] ), FILTER ( ALL ( Slicer ), Slicer[Index] >= SELECTEDVALUE ( Slicer[Index] ) - 1 && Slicer[Index] < SELECTEDVALUE ( Slicer[Index] ) ) )
Regards,
Cherie
Hi,
That is also not my case cause it will throw me an error about 'multiple values were supplied', I tried that as well. However I managed to solve the issue. If anyone is interested, I can post sample query here.
And thanks once again.
Hi @Anonymous
Sample data and expected output will be helpful to provide an accurate solution.
Regards,
Hello,
I've managed to solve the problem. Thanks for cooperation.
Kind regards,
Taisiya
Hi @Anonymous
Got it, if you have resolved the issue, please mark the reply as answer to close this thread.
Regards,
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 |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |