Forum Discussion
likhithar
Helper III
4 years agoDAX in getting Maximum Rate by Month
Hello All, I have Cost , Sales fact tables . Town,State and DateTable are Dimension Tables. My Total Value is Sales+Cost. I have another table which is Rates Table where rates will be there on mon...
Anonymous
4 years agoNot applicable
Hi likhithar ,
Here are the steps you can follow:
1. Create calculated table.
Table = SUMMARIZE('Rates Table','Rates Table'[YYYMM],"1",MAX('Rates Table'[Rate]))
2. Create measure.
Flag =
var _table=SUMMARIZE('Table','Table'[YYYMM],"value",SUM('Table'[1])*[TotalYTD])
return
SUMX(_table,[value])
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly