Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hey guys,
I'm quite new on PowerBi usage and I need your help.
In the column I have a mix of number of values (represented as "OK"), in my dashboard I need to create a box with a formula on it where I filter out the rows with value "OK" then calculate the average of the remaning.
Suggestions?
Solved! Go to Solution.
Hi @Anonymous ,
How about this:
Here the code:
MeasureText&Numbers =
CALCULATE (
AVERAGEX ( Table20, CONVERT ( Table20[Durata step 2], INTEGER) ),
Table20[Durata step 2] <> "OK"
)
While the measure above should work, I'd recommend to clean your data in that column before loading it into PBI. If the OKs and the numbers are important, I'd suggest to create a new column with the OKs and substitute the OKs in Durata Step 2 with blanks() in Power Query. But that shall just be a humble suggestion 🙂
Hope the formular gets you closer to a solution anyway 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
Hi @Anonymous ,
How about this:
Here the code:
MeasureText&Numbers =
CALCULATE (
AVERAGEX ( Table20, CONVERT ( Table20[Durata step 2], INTEGER) ),
Table20[Durata step 2] <> "OK"
)
While the measure above should work, I'd recommend to clean your data in that column before loading it into PBI. If the OKs and the numbers are important, I'd suggest to create a new column with the OKs and substitute the OKs in Durata Step 2 with blanks() in Power Query. But that shall just be a humble suggestion 🙂
Hope the formular gets you closer to a solution anyway 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |