Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
My datasource looks llike that:
I would like to create a visual(matrix)in PowerBi,that will count amount of companies per each status(the desirable output):
Equal: 2
Higher: 4
Lower: 4
Unfortunelty the output I have is:
Equal: 3
Higher: 10
Lower: 6
Could you please advise if there is a way to do it in PowerBi?
Solved! Go to Solution.
OK- I got the sollution.
So, I needed to create a seperate table in PowerBi.
This table(Tbl_Statuses) contains 3 rows- one row for each status(red, amber, neutral).
Also I needed to create a measure(CountofStatuses) to count how many red, amber, neutral statuses each company have.
Thank you for your help.
Hi @FreemanZ ,
The test will be to compare two subtotals of valuesper each company from columns F and G , like:
=IF(F2=G2,"Equal",IF(F2>G2,"Higher",IF(F2<G2,"Lower","N/A")))
so the outoput Iam after, will be:
Do you think it is possible?
OK- I got the sollution.
So, I needed to create a seperate table in PowerBi.
This table(Tbl_Statuses) contains 3 rows- one row for each status(red, amber, neutral).
Also I needed to create a measure(CountofStatuses) to count how many red, amber, neutral statuses each company have.
Thank you for your help.
hi @DanRus ,
try to plot a table visual with the company_id column and a measure like:
measure = DISTINCTCOUNT(data[Status])
Thank you so much @FreemanZ, That works, I just realise, that the original datasource does not provide proper entry, however totals supposed to work OK.
I guess my next quetion is:
How I can apply status for totals per companies
instead of each row:
Please advise, and I am closing the topic.
hi @DanRus ,
How does "apply status for totals per companies" look like? Could you describe it with an excel table?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |