Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi,
Im trying to do the following:
I have visual with 2 measures:
Solved! Go to Solution.
Hi @Bohumil_Uhrin ,
You can use the following measure, and it will show what you want:
Amortisation value prev =
VAR prev_month = MAX(data[Month])-1
RETURN
calculate([Amortisation value],filter(ALLEXCEPT(data,data[Material]),data[Month]=prev_month))
If this post help, please consider accept it as the solution to help other member find it more quickly.
Best Regards,
Dedmon Dai
is your data[Month] a date field or a number field? what happens if the month is January?
Did you notice that you subtract 1 twice?
data[Month] is number field
yeah, I subtracted twice - I corrected
I have data only for months 3-9. When I select the smallest (3), its the same - blanks.
I shared file on onedrive: https://1drv.ms/u/s!AsS4aATA1W9agqQtzmF_2oMhuMB6aA?e=YmOQXZ
thank you very much for your help
Hi @Bohumil_Uhrin ,
You can use the following measure, and it will show what you want:
Amortisation value prev =
VAR prev_month = MAX(data[Month])-1
RETURN
calculate([Amortisation value],filter(ALLEXCEPT(data,data[Material]),data[Month]=prev_month))
If this post help, please consider accept it as the solution to help other member find it more quickly.
Best Regards,
Dedmon Dai
thank you, this worked well 🙂
hi, yes, I was using measure for [max month], but with the variable its the same - Im geting blank values
is [max month] a measure? Use a variable instead.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
71 | |
65 | |
42 | |
42 |
User | Count |
---|---|
49 | |
42 | |
29 | |
28 | |
26 |