Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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 ?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
45 | |
39 | |
30 |
User | Count |
---|---|
159 | |
98 | |
60 | |
42 | |
42 |