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.
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 ?
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 |
---|---|
114 | |
100 | |
78 | |
75 | |
50 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |