March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
110 | |
75 | |
56 | |
52 | |
44 |
User | Count |
---|---|
157 | |
113 | |
63 | |
60 | |
50 |