Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I want to create a measure that would use another measure that is the variance of salesvalues from 2019 and 2020 using the following filters. Not sure how that DAX command would look like.
The most important observation about your model is that it's wrong and you should change it. Hard-coding the names of years in your measures or fields is a clear sign you should really try to make an effort and learn the rules of data modeling for Power BI. If you don't do this... well, you'll be in trouble very soon and rather sooner than later.
NewMeasure =
IF (
AND ( [SALES_VALUE for 2019] <> 0, [SALES_VALUE for 2020] <> 0 ),
[SALES_VALUE for 2020] - [SALES_VALUE for 2019]
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
57 | |
49 | |
44 | |
18 | |
18 |