The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a fact table named Onbaording Report that contains multiple records for suppliers that have sent Purchase Orders and Invoiced on those Purchase Orders.
I have a Dimension table of Suppliers named Supplier Lookup that contains suppliers that Are AND ARE NOT present in Onboarding Report.
I have a One to Many Relationship present between the two tables as shown below.
I Created the below measure to count the number of suppliers in scope from the Supplier Lookup table.
I have written the below measure to count the suppliers present in Suppier Lookup and NOT in Onboarding Report.
@Anonymous
Could we go at it the other way. Calc the whole count, the count of those present then the difference is the count of those missing?
Number Suppliers Not Sent POs =
VAR _AllSuppliers =
CALCULATE ( DISTINCTCOUNT ( 'Supplier Lookup'[SupplierKey] ) )
VAR _PresentSuppliers =
CALCULATE (
DISTINCTCOUNT ( 'Supplier Lookup'[SupplierKey] ),
'Onboarding Report'
)
VAR _MissingSuppliers = _AllSuppliers - _PresentSuppliers
RETURN
_MissingSuppliers
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
81 | |
63 | |
56 |
User | Count |
---|---|
248 | |
124 | |
111 | |
78 | |
78 |