Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Gerbil
Helper I
Helper I

Card Visual that shows info based on multiple conditions?

So I have a table like so:

 

RegionNameOn/OffCount
NorthJohnOn12
SouthDrakeOff11
SouthJasonOn5

 

The count column is counting how many instances of the region/name/onoff combo there is. So there are 12 entries with region North, name John, and condition On. I want a card that shows the number of entries that are "Off" and have a count higher than 10. How would I go about doing that?

 

So the preferred outcome would be a card displaying 1 since there is one row that fits those criteria.

7 REPLIES 7
Arul
Super User
Super User

@Gerbil ,

try this measure,

Off count = COUNTROWS(FILTER('Table',SUM('Table'[Count])>10 && 'Table'[On/Off] = "Off"))




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


So I can't do a sum of the Count column because it is counting entries, not really a number. I tried using that measure with COUNT instead of SUM but it is just counting all the entries with on/off column = off.

@Gerbil ,

Well that could be a datatype issue. I assume count column is whole number type, it worked.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


The column Count is actually the job ID, which is a text type. The table was created through Power BI by selecting "Region", "Name", "On/Off", then the count of "Count" (job ID). I'm not sure how to create a column that shows the count with those conditions since it needs to be dynamic and job entries will change daily.

@Gerbil ,

Change the datatype of the column named "Count" in Power Query Editor. Click on Abc besides the column and in the dropdown change the datatype to whole number.

 

Arul_0-1716228149214.png

it will be changed like this,

 

Arul_1-1716228229112.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


The "Count" column is a job ID, which is a mix of alpha and numeric values. So I can't change that to a whole number column.

 

But I created a new column, calling it "JobCounter", and set the value as 1 for each entry. Still, it did not work and the card is showing the number of jobs with the condition "Off". It is not showing me the number of Region/Name combo with the condition "Off" that have more than 10 count.

@Gerbil ,

Is it possible to share the file?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors