Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hello community!
I am trying to create a measure that calculates the total product sales for a specfic month only for does products that has been sold the same period last year.
The second thing I did was to create a Comparable range flag as measure:
To demonstrate my problem I have used the ContosoRetailDW sample database with a simple star scheme consisting in the tables "FactSales", "DimDate" and "DimProduct"
Thanks in advanced for any help.
Solved! Go to Solution.
I re-wrote the solution to the following:
A measure is returning a scalar value. A filter expects a table. Rewrite your second measure to incorporate the same logic as you did in the first.
I adjusted the measure to create the CompRangeTable based on DimProduct instead of the fact table:
It should return 13,811,177 on each row which is the total:
Use a step by step approach with variables and use EVALUATEANDLOG to ensure each step is producing the desired result.
I re-wrote the solution to the following:
Thank you for you respons Ibendlin!
When you say the second measure, do you mean I should adjust this one ?
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
116 | |
108 | |
107 | |
93 | |
69 |
User | Count |
---|---|
169 | |
134 | |
132 | |
95 | |
93 |