Forum Discussion
Month over month graph
- Anonymous4 years ago
Hi Anonymous,Please try to update the formula of measure [ROAS per Day previous Month] as below and check if can return the correct result...
PS: The part with red font is update ones....
ROAS per Day previous Month =
DIVIDE (
CALCULATE (
SUM ( 'All data'[NetRevenue (Attributed, ToCnv)] ),
PREVIOUSMONTH ( 'All data'[Date] ),
'All data'[Costs (Total, Commission, ToCnv)] <> 0,
ALL ( 'All data' )
),
CALCULATE (
SUM ( 'All data'[Costs (Total, Commission, ToCnv)] ),
PREVIOUSMONTH ( 'All data'[Date] ),
'All data'[Costs (Total, Commission, ToCnv)] <> 0,
ALL ( 'All data' )
)
)How to create Dax logic for this Month and Previous Month
= CALCULATE(SUM(Table[Auftragsbestand]); VALUES(Table[PG]);DATEADD(Table[Datum];-1;MONTH))If the above one can't help you get the desired result, please provide some sample data in your tables'All data' and'Date'(exclude sensitive data) with Text format and yourexpected result with backend logic, screenshot of your visuals and special examples. By the way, is there any relationship created between the table 'All data' and 'Date'? It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi Anonymous,Please try to update the formula of measure [ROAS per Day previous Month] as below and check if can return the correct result...
PS: The part with red font is update ones....
| ROAS per Day previous Month = DIVIDE ( CALCULATE ( SUM ( 'All data'[NetRevenue (Attributed, ToCnv)] ), PREVIOUSMONTH ( 'All data'[Date] ), 'All data'[Costs (Total, Commission, ToCnv)] <> 0, ALL ( 'All data' ) ), CALCULATE ( SUM ( 'All data'[Costs (Total, Commission, ToCnv)] ), PREVIOUSMONTH ( 'All data'[Date] ), 'All data'[Costs (Total, Commission, ToCnv)] <> 0, ALL ( 'All data' ) ) ) |
How to create Dax logic for this Month and Previous Month
= CALCULATE(SUM(Table[Auftragsbestand]); VALUES(Table[PG]);DATEADD(Table[Datum];-1;MONTH))
If the above one can't help you get the desired result, please provide some sample data in your tables'All data' and'Date'(exclude sensitive data) with Text format and yourexpected result with backend logic, screenshot of your visuals and special examples. By the way, is there any relationship created between the table 'All data' and 'Date'? It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hello Ying,
Thank you for your reply. This solution worked! 🙂
Could you explain to me where my thinking was wrong and why my formula did not work?
Thank you so much, your help is highly appreciated!
Kira