Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Solved! Go to Solution.
This DAX expression is used to calculate a value based on certain conditions. Here's how it works:
It first checks if the column [Price per Unit - PY $] is blank. If it is, the result is also set to blank, and the calculation stops. This condition handles cases where the price for the previous year is missing or not available.
If the [Price per Unit - PY $] is not blank, it proceeds to the next step. It filters the data in the table FactSalesInvoiceLine based on the following conditions:
For the filtered rows, it performs a calculation. It multiplies the values in the columns [Unit Quantity - CY] and [Price per Unit - CY vs PY $].
Finally, it sums up the results of these calculations for all the filtered rows, providing the final result.
Proud to be a Super User! | |
This DAX expression is used to calculate a value based on certain conditions. Here's how it works:
It first checks if the column [Price per Unit - PY $] is blank. If it is, the result is also set to blank, and the calculation stops. This condition handles cases where the price for the previous year is missing or not available.
If the [Price per Unit - PY $] is not blank, it proceeds to the next step. It filters the data in the table FactSalesInvoiceLine based on the following conditions:
For the filtered rows, it performs a calculation. It multiplies the values in the columns [Unit Quantity - CY] and [Price per Unit - CY vs PY $].
Finally, it sums up the results of these calculations for all the filtered rows, providing the final result.
Proud to be a Super User! | |
| User | Count |
|---|---|
| 55 | |
| 37 | |
| 23 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 58 | |
| 39 | |
| 21 | |
| 21 |