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
Hi all,
I have created a measure (OrdersInFull) that gets a count of how many orders are "In Full". The measure works fine until I add "ProductName" from the product dimension (one to many relationship Product -> Sale). When I add "ProductName" to the table, the rows increase to display every possible product for every line in the Sale table. Why does this happen?
Calculation for the measure (probably whats causing the issue ) is also in the screenshot below. On the left you will see the table without the "ProductName" field, displaying correctly. The table on the right shows what happens when I add ProductName. Any help on this is much appreciated.
You're adding 0 to every count in that measure, so there are no blank values. Every product gets a 0, so it has to display.
Proud to be a Super User!
Thanks for that. I was sure this is intended behaviour. However, if I remove the zero (allowing blanks) then if I have a similar table to my original post except without the saleLine included, then the table only shows orders where "InFull" = "Y", I need it to show all orders regardless of if its infull or not. Is there any way I can improve my measure to do this? Thanks again for your help.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |