Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I have the following excel formula
=IF(
[@[Is Standard]]=FALSE,
COUNTIFS([Programme],[@Programme],[Framework/Standard Title],[@[Framework/Standard Title]],[Overall cohort year],[@[Overall cohort year]]),
COUNTIFS([Framework/Standard Title],[@[Framework/Standard Title]],[Overall cohort year],[@[Overall cohort year]])
)
Assume its all in one table (Table1) how do I write this as a measure?
Thanks in advance
Try something like this:
Measure =
VAR FirstResult =
COUNTROWS (
FILTER (
Table,
Table[Programme] = "Some Condition"
&& Table[Framework/Standard Title] = "Some Condition"
&& Table[Overall cohort year] = "Some Condition"
)
)
VAR SecondResult =
COUNTROWS (
FILTER (
Table,
Table[Framework/Standard Title] = "Some Condition"
&& Table[Overall cohort year] = "Some Condition"
)
)
RETURN
IF ( SELECTEDVALUE ( Table[Is Standard] ) = "False", FirstResult, SecondResult )
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 20 | |
| 12 | |
| 10 |