Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I need to add a measure to calculate Total amount based on a selected Date . However I need to compare the selected date against Accounting Date and Freeze Date . The filter in the measure shoudl be Accountdate <= Selected Date and Freeze Date > Selected Date
Here is the table :
Before filter
Lets suppose the selected date is 31 March 2021. so the expected result should be
Expected results
Thanks a lot
Solved! Go to Solution.
You were right . I have deleted the relationship and now it works fine
Thanks you much for your help
Hello
Unfortunately it didnt work . It shows blank If I add this measure. FYI, my dimension date has a relationship with Freeze date. Any ideas?
Thanks a lot again
Hey @macwhe ,
can post a screenshot of the data model, relationships and of the report page.
Otherwise if the data is not sensitive can you upload it or send it directly to me?
The example works for me, but dependent of your data model it might need a different approach for your model.
You were right . I have deleted the relationship and now it works fine
Thanks you much for your help
Hey @macwhe ,
check if the following measure works for you:
Sum Amount =
VAR vSelectedDate =
SELECTEDVALUE( DateTable[Date] )
RETURN
CALCULATE(
SUM( myTable[Amount] ),
myTable[AccountingDate] <= vSelectedDate && myTable[Freeze Date] > vSelectedDate
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.