Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All ,
I'm looking for a measure to count the amount of buildings that exceed a threshold of one so i can count how mnay meters were active yesterday.
Online Buildings = CALCULATE(DISTINCTCOUNT(FactUWP[Grouped]),if([Total Consumption Todays Usages] > 1 ,1,0))
I'm using below but getting the error a function placeholder has been used in a True/False Expression ?
Any help would be Appericated 🙂
Solved! Go to Solution.
Hi @JamesBurke
Two methods you coud try, one filtering the data and the other using an iterator function.
Online Buildings Filter=
Calculate(
DISTINCTCOUNT(FactUWP[Grouped])
Filter(FactUWP, [Total Consumption Todays Usages] > 1)
)
Countx values =
SUMX(
Values( FactUWP[Grouped] )
, if([Total Consumption Todays Usages] > 1 ,1,0)
)
The error is because you aren't saying what you want to do with the IF statement.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi @JamesBurke
Two methods you coud try, one filtering the data and the other using an iterator function.
Online Buildings Filter=
Calculate(
DISTINCTCOUNT(FactUWP[Grouped])
Filter(FactUWP, [Total Consumption Todays Usages] > 1)
)
Countx values =
SUMX(
Values( FactUWP[Grouped] )
, if([Total Consumption Todays Usages] > 1 ,1,0)
)
The error is because you aren't saying what you want to do with the IF statement.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi @JamesBurke ,
We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.
If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
If you still have any questions or need further assistance, feel free to let us know — we're happy to help!
Thank you!
Hi @JamesBurke
If a community member's response addressed your query, please consider marking it as Accepted Answer and click Yes if you found it helpful.
If you have any further questions, feel free to reach out.
Thank you for being a valued member of the Microsoft Fabric Community Forum!
Hi @JamesBurke ,
We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.
If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
If you still have any questions or need further assistance, feel free to let us know — we're happy to help!
Thank you!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |