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
smp_2022
New Member

Filter a column of table and create a measure

Hi team,

I'm new to Power BI. I have a table called Packages which has a lot of fields but 2 main fields are "Fast" (yes/no field) and "Value" (string field). I want to create a measure to filter the package table with condition "Fast" = "No" and get all values for that. How can I do that?

4 REPLIES 4
Anonymous
Not applicable

Hi @smp_2022 

You can create a measure like the following.

e.g 

Measure =
IF ( SELECTEDVALUE ( 'Table'[Fast] ) = "No", 1, 0 )

Then put the measure to the related visual filter, set the filter condition to that: when tehe measure is 1

e.g 

vxinruzhumsft_0-1693461926096.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

JoeBarry
Solution Sage
Solution Sage

Hi @smp_2022 

 

If you want to count all Values please try this

 

Amount = CALCULATE(COUNT(Packages[Values]), KEEPFILTERS([Fast] = "No"))

 

If you want a unique count, change COUNT to DISTINCTCOUNT

 

Thanks

Joe

If this post helps, then please Accept it as the solution

 

Hi @JoeBarry ,

The value field is a string field I don't want to count I want to get values of the "value" field where "Fast" column value = NO

Is it a number in the Values column? Can you provide a screenshot of the Values column in Power Query? If it a number formatted as a string, then convert to number and change the Count to SUM.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.