Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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?
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
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.
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |