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.
i have a condition to find Unique ticket ID count using this filter
Status equal to Match and Type equal to Invoice or Type equal to Certificate
When I tried the following, it did NOT work:
I'm Using Measure
Solved! Go to Solution.
You are probably just missing the paranthesis to group your conditions together:
Correct =
CALCULATE (
DISTINCTCOUNT ( 'Finallist'[Ticketno] ),
FILTER (
'Finallist',
( Finallist[Status] == "Match"
&& Finallist[Type] == "Invoice" )
|| (
Finallist[Type]
== "Certificate"
&& MONTH ( 'Finallist'[Date] )
= MONTH ( TODAY () ) - 2
)
)
)
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
You are probably just missing the paranthesis to group your conditions together:
Correct =
CALCULATE (
DISTINCTCOUNT ( 'Finallist'[Ticketno] ),
FILTER (
'Finallist',
( Finallist[Status] == "Match"
&& Finallist[Type] == "Invoice" )
|| (
Finallist[Type]
== "Certificate"
&& MONTH ( 'Finallist'[Date] )
= MONTH ( TODAY () ) - 2
)
)
)
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |