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!View all the Fabric Data Days sessions on demand. View schedule
I do not want to add calculated columns or tables to the model.
I have this DAX:
Solved! Go to Solution.
Thank you Ashish_Mathur and Shravan133
Hi, @Anonymous
Based on your description, I've created the following sample data:
I use the following DAX expression to get the count:
Count =
COUNTROWS(
FILTER(
'Table',
'Table'[column]="xyz"&&
'Table'[ID] IN VALUES(dim_id[ID])
)
)
Create a slicer using dim_id[ID]. Create a bar chart using the group and count Measure:
I've provided the PBIX file used this time below.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you Ashish_Mathur and Shravan133
Hi, @Anonymous
Based on your description, I've created the following sample data:
I use the following DAX expression to get the count:
Count =
COUNTROWS(
FILTER(
'Table',
'Table'[column]="xyz"&&
'Table'[ID] IN VALUES(dim_id[ID])
)
)
Create a slicer using dim_id[ID]. Create a bar chart using the group and count Measure:
I've provided the PBIX file used this time below.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Simplify the measure to
= calculate(COUNTROWS(table),table[column] = "xyz")
Hope this helps.
try this:
Measure_Count_XYZ =
CALCULATE(
COUNTROWS(
FILTER(
table,
table[column] = "xyz"
&& table[ID] = SELECTEDVALUE(dim_id[ID])
)
)
)
This will now dynamically calculate and display the count of rows where table[column] = "xyz" and table[ID] = SELECTEDVALUE(dim_id[ID]) in the context of the chart, grouping by whatever columns you place in the visual.
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!