Forum Discussion
nleuck
7 years agoPost Patron
DAX Formula
Hello All, I'm currently trying to recreate a formula in Power BI that is being used in Excel for a report. On the image below I've place an M above the columns of my table that represent Measure...
v-yuta-msft
7 years agoCommunity Support
Create a measure and try DAX formula like pattern below:
Measure =
CALCULATE ( SUM ( Table[Prev Period Gross Margin] ), ALL ( Table ) )
- MAX ( Table[Prev Period Gross Margin] )
+ MAX ( Table[Gross Margin] )
/ CALCULATE ( SUM ( Table[Prev Period Sales Amount] ), ALL ( Table ) )
- MAX ( Table[Prev Period Sales Amount] )
+ MAX ( Table[Sales Amount] )
Regards,
Jimmy Tao
- nleuck7 years agoPost Patron
- v-yuta-msft7 years agoCommunity Support
Could you share the original table for further test?
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-yuta-msft7 years agoCommunity Support
Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.
Regards,
Jimmy Tao
- nleuck7 years agoPost Patron
There wasn't a correct answer. It looks like what I'm trying to do can not be done in Power BI.