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
Hi
1.can we get the excel visual same in power bi please find the image below
2.also want to show total number of assigned count(A) ,credential count(c),disabled count (D)from matrix
Any help would be much appreciated
thanks
Hi @Anonymous ,
This is the requiremnt i have and i wrote a measure to display the Status untill highligted
Dax is have used is
Status =
SWITCH (
TRUE (),
COUNTROWS(FILTER(ContractStaff, ContractStaff[Assigned] = TRUE())) > 0 && COUNTROWS(FILTER(ContractStaff, ContractStaff[Disabled] = FALSE())) > 0, "A",
COUNTROWS(FILTER(ContractStaff, ContractStaff[Assigned] = FALSE())) > 0 && COUNTROWS(FILTER(ContractStaff, ContractStaff[Disabled] = FALSE())) > 0, "C",
COUNTROWS(FILTER(ContractStaff, ContractStaff[Disabled] = TRUE())) > 0, "D",
BLANK()
)
I need to display the count of total A,C,D in the same matrix regards to the Staffname your help will be much appricated.thanks
Hi @Rkrama ,
Here are the steps you can follow:
1. Create calculated table.
Table 2 =
var _table1=
{"Assigned Count","Credentialed Count","Disable Count"}
var _table2=
DISTINCT('Table'[ConTracts])
RETURN
UNION(
_table2,_table1)
2. Create measure.
Value =
var _column=SELECTCOLUMNS('Table',"1",'Table'[ConTracts])
return
SWITCH(
TRUE(),
MAX('Table 2'[ConTracts]) = "Assigned Count",
COUNTX(
FILTER(ALL('Table'),
'Table'[Group]=MAX('Table'[Group])&&'Table'[Value]="A"),[Value]),
MAX('Table 2'[ConTracts]) = "Credentialed Count",
COUNTX(
FILTER(ALL('Table'),
'Table'[Group]=MAX('Table'[Group])&&'Table'[Value]="C"),[Value]),
MAX('Table 2'[ConTracts]) = "Disable Count",
COUNTX(
FILTER(ALL('Table'),
'Table'[Group]=MAX('Table'[Group])&&'Table'[Value]="D"),[Value]),
MAX('Table 2'[ConTracts]) in _column&& MAX('Table'[Value]) <> BLANK(),
MAXX(
FILTER(ALL('Table'),
'Table'[ConTracts]=MAX('Table 2'[ConTracts])&&'Table'[Group]=MAX('Table'[Group])),[Value])
,BLANK())Color =
IF(
ISERROR(VALUE([Value])) && [Value]<>BLANK(),"green",
IF(
ISERROR(VALUE([Value])),"yellow"))
3. [Value] – Conditional formatting – Background color.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
|---|---|
| 5 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |