The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 )
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |