Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
I am trying to fetch a value from a previous month in my further month's calculations:
First logic:
What I am expecting:
Please assist!
Hi,
It will be nice if you can share some data to work, explain the simple logic of what you want done. Show also the expected result. With this much information, I am sure i can simplify your measures.
Hello Ashish, What I am trying to achieve is this:
Calculation 1 - Overall Due Cases: If the due date is less than today's date, distinct count the Items. Dislay total due cases in January. For Rest months, previous value of Calculation 1 - Calculation 2
Calculation 2 - Overall Renewed Cases: If the Renew date is NOT BLANK, distinct count the Items. Dislay blank in January and values in rest months.
The dashboard has two tables: One coming from excel and another is a date table.
Outcome I am seeing:
Expected outcome:
Sorry I am not clear. Someone else may help you.
output : ( COLUMN : measure )
use this measure :
measure =
var first_value =
CALCULATE(
[test_measure],
INDEX(
1,
ALLSELECTED(tbl[month],tbl[monthnb]),
ORDERBY(tbl[monthnb] , asc)
)
)
var v =
CALCULATE(
SUM([value]),
tbl[monthnb] <= MAX(tbl[monthnb]),
REMOVEFILTERS(tbl[month])
)
return first_value - v
NB: you need to create a monthnb and sort monthname column by monthnb .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution !✅
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠
Thanks for response @Daniel29195 ! This seems like it should work, but I am not sure what is going wrong. I am still getting wrong values in the calculations you proposed. Let me verify again and revert back with an explanation.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
35 |
User | Count |
---|---|
95 | |
79 | |
52 | |
49 | |
47 |