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! Learn more
Hi, community,
I am trying to calculate the difference between the biggest and lowest values in this table in the selected range of dates.
In this case the the desired result would be a dax measure that would calculate:
VerteX on lowest date in selection (31320000) - VerteX on the biggest date on selection (27380000) = 3940000.
How do I identify the min and max dates in the selection?
The formula for VNT VertėX =
CALCULATE(
Solved! Go to Solution.
Hi @Anonymous ,
You can use the following measure:
Measure = FIRSTNONBLANKVALUE(Dates[EndOfMonth],[VNT VertėX])-LASTNONBLANKVALUE(Dates[EndOfMonth],[VNT VertėX])
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @Anonymous ,
You can use the following measure:
Measure = FIRSTNONBLANKVALUE(Dates[EndOfMonth],[VNT VertėX])-LASTNONBLANKVALUE(Dates[EndOfMonth],[VNT VertėX])
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
@Anonymous , try a measure like
measure =
var _max = MAXX(allselected('Dates'), 'Dates'[Date])
var _min = MAXX(allselected('Dates'), 'Dates'[Date])
return
CALCULATE(
SUMX('VNT Vertės', 'VNT Vertės'[InvestmentUnitValueEntEY.Unit_Value] * [VNT Skaičius]),
FILTER((Dates[Date]), Dates[Date] = _max)) - CALCULATE(
SUMX('VNT Vertės', 'VNT Vertės'[InvestmentUnitValueEntEY.Unit_Value] * [VNT Skaičius]),
FILTER((Dates[Date]), Dates[Date] = _min))
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.