Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Lets consider i have a model like this. Relationship between sales and state is both
I want to see quota by state in a table
Quota of state XXXX will not be displayed in table as it has no sales table records, Is there any way to get that record without modifiying this model ?
I know we can achieve this by changin the model as below
But this model is reducig the performance when Seller details and sales data are seen together (We are doing this in direct query)
May be this could be a simple fix, Any help is appreciated.
Thanks,
Dinesh J.
Solved! Go to Solution.
Hi Dinesh,
There could be two methods.
Method one:
1. Create a new inactive relationship;
2. Create a measure.
Measure = CALCULATE ( SUM ( Seller[Quota] ), USERELATIONSHIP ( Seller[State ID], State[ID] ) )
Method two:
Create a measure.
Measure 2 = IF ( MIN ( State[ID] ) IN VALUES ( Sales[State] ), BLANK (), CALCULATE ( SUM ( Seller[Quota] ), FILTER ( Seller, Seller[State ID] = MIN ( State[ID] ) ) ) )
Best Regards,
Dale
Hi Dinesh,
There could be two methods.
Method one:
1. Create a new inactive relationship;
2. Create a measure.
Measure = CALCULATE ( SUM ( Seller[Quota] ), USERELATIONSHIP ( Seller[State ID], State[ID] ) )
Method two:
Create a measure.
Measure 2 = IF ( MIN ( State[ID] ) IN VALUES ( Sales[State] ), BLANK (), CALCULATE ( SUM ( Seller[Quota] ), FILTER ( Seller, Seller[State ID] = MIN ( State[ID] ) ) ) )
Best Regards,
Dale
Hi Dale,
This solution worked.
Thanks,
Dinesh J.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
86 | |
84 | |
66 | |
62 | |
59 |
User | Count |
---|---|
197 | |
116 | |
107 | |
77 | |
70 |