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.
Year | Product | ProdSubCat | Pricecurryr | priceprvyr | qty | price | pricediff | afftectedamt |
2020 | 11 | 12 | 2.20 | 2.10 | 1 | 2.20 | .10 | .10 |
2019 | 11 | 12 | 2.10 | 2.10 | 1 | 2.10 | 0 | 0 |
2020 | 11 | 14 | 1 | 1 | 1 | 1 | 0 | 0 |
2019 | 11 | 14 | 1 | 1 | 1 | 1 | 0 | 0 |
2019 | 11 | 15 | 2 | 2 | 2 | 2 | 0 | 0 |
Total | 8.10 |
measure =(Pricecurryr-priceprvyr)*qty
Pricecurryr,priceprvyr and qty are other measures refered in above measure.
Solved! Go to Solution.
Hi @sneevand ,
Be aware that DAX measure are based on row context.
You could try to create a measure like this:
Measure = AVERAGEX(VALUES(TABLE[YEAR]),([Pricecurryr]-[priceprvyr])*[qty])
If the problem persists,could you share the sample pbix via cloud service like onedrive for business or paste the fact table data?
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sneevand ,
Be aware that DAX measure are based on row context.
You could try to create a measure like this:
Measure = AVERAGEX(VALUES(TABLE[YEAR]),([Pricecurryr]-[priceprvyr])*[qty])
If the problem persists,could you share the sample pbix via cloud service like onedrive for business or paste the fact table data?
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@sneevand , Try a measure with one of the two options
Averagex(Table,([Pricecurryr]-[priceprvyr])*[qty])
Divide(Sumx(Table,([Pricecurryr]-[priceprvyr])*[qty]), Sum(Table[Qty])
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 |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |