Forum Discussion
nedpbi
Helper I
2 years agoVariance between current year and last year in columns
Hi All, I have a table with a measure sales amt. This table has a relationship with another table dates which has the date dimensions. I would like to show the data in a cross table. How can ...
- 2 years ago
There probably is a way to do that. However, typically, the "Sales Amt" is calculated per a category of sorts. For example, "Sales Amt", per salesperson; store; region; or even date. Does that make sense? If you truly just want "Sales Amt", you could probably do something along the lines of:
ADDCOLUMNS ( SUMMARIZE ( SalesTable, [CY], [LY], [Variance] ), "Sales Amt", "Sales Amt" )I would need a better understanding of the data to build that DAX for you.
Lastly, if my response was helpful, marking it as a solution would be greatly appreciatedðŸ¤
ExcelMonke
Impactful Individual
2 years agoHi nedpbi,
Based on the table above, it looks like the variance result is performing as expected. Is there a different result you were expecting for variance?