Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 )
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |