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.
Hi all,
I'm working on a dashboard to show live suppliers and want to show in a card how many suppliers are live in the database based on a count of invoices. i've added some data to show what i'm working with. So with this i want to show Company 1 ( 1 Live Supplier ) Company 2 ( 2 Live Suppliers ) and Company 3 ( 2 Live Suppliers )
Name | Invoices | Organization |
Apple | 189 | Company 1 |
Microsoft | 24 | Company 2 |
146 | Company 3 | |
SAS | 23 | Company 2 |
Oracle | 24 | Company 3 |
Dell | 0 | Company 3 |
Solved! Go to Solution.
Hi @GlitchedDuck ,
According to your description, I create a sample.
Here's my solution, create a measure.
Count =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Name] ),
FILTER (
ALL ( 'Table' ),
'Table'[Organization] = MAX ( 'Table'[Organization] )
&& SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[Organization] = EARLIER ( 'Table'[Organization] )
&& 'Table'[Name] = EARLIER ( 'Table'[Name] )
),
'Table'[Invoices]
) > 0
)
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @GlitchedDuck ,
According to your description, I create a sample.
Here's my solution, create a measure.
Count =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Name] ),
FILTER (
ALL ( 'Table' ),
'Table'[Organization] = MAX ( 'Table'[Organization] )
&& SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[Organization] = EARLIER ( 'Table'[Organization] )
&& 'Table'[Name] = EARLIER ( 'Table'[Name] )
),
'Table'[Invoices]
) > 0
)
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Adding the individual invoice it will always show one supplier per line, as one invoice can only have one supplier.
You can force the measure to ignore the invoice in the filtering and show the global suppliers per Organization:
Count of Name = CALCULATE(
COUNT('Table'[Name]),
ALL('Table'[Invoices]
))
Giving something like this:
Regards,
Sérgio Silva
Hi @GlitchedDuck ,
You only need to create a measure with the following:
Count of Name = COUNT('Table'[Name])
And put the organization and the measure in a table:
Regards,
Sérgio Silva
Thanks for the reply, i should of said in my data its shows each indiviual invoice so the count shows Company 1 as 189, but if i group it name it gives me the table above
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 |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |