Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
67 | |
65 | |
57 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |