The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the table which has a column pricedate in it, and another table which has calendar date in it. I have to calculate the average price of the maximum pricedate and populate across other dates.
daxused =
what is expected is
thanks for your help!
Solved! Go to Solution.
Hi @adharsr ,
You can update the formula of measure [daxused] as below and check if it can return the correct result...
daxused =
VAR folderdate =
CALCULATE ( MAX ( 'Append'[pricedate] ), ALLSELECTED ( 'Append' ) )
RETURN
IF (
SELECTEDVALUE ( 'calenderDate'[Date] ) IN VALUES ( 'Append'[pricedate] ),
CALCULATE (
MAX ( 'Append'[price] ),
FILTER ( ALLSELECTED ( 'Append' ), 'Append'[pricedate] = folderdate )
)
)
Best Regards
Hi @adharsr ,
You can update the formula of measure [daxused] as below and check if it can return the correct result...
daxused =
VAR folderdate =
CALCULATE ( MAX ( 'Append'[pricedate] ), ALLSELECTED ( 'Append' ) )
RETURN
IF (
SELECTEDVALUE ( 'calenderDate'[Date] ) IN VALUES ( 'Append'[pricedate] ),
CALCULATE (
MAX ( 'Append'[price] ),
FILTER ( ALLSELECTED ( 'Append' ), 'Append'[pricedate] = folderdate )
)
)
Best Regards
Thank you so much my problem is solved, heartful thanks to you 😄