Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I am new to powerbi and I need help in converting the below excel formula to an expression
=IF(AND(COUNTIF(D:D,[@Number])>1,COUNTIFS(E:E,"*Response*",D:D,[@Number])>1),"Duplicate","No")
Solved! Go to Solution.
Hi @dineshpj ,
Create a measure as below:
measure =
VAR _count1 =
CALCULATE (
COUNT ( 'Table'[Column D] ),
FILTER ( 'Table', 'Table'[Column D] = [@Number] )
)
VAR _count2 =
CALCULATE (
COUNT ( 'Table'[Column E] ),
FILTER (
'Table',
'Table'[Column E] = "*Response*"
&& 'Table'[Column D] = [@Number]
)
)
RETURN
IF ( _count1 > 1 && _count2 > 1, "Duplicate", "No" )
Hi @dineshpj ,
Create a measure as below:
measure =
VAR _count1 =
CALCULATE (
COUNT ( 'Table'[Column D] ),
FILTER ( 'Table', 'Table'[Column D] = [@Number] )
)
VAR _count2 =
CALCULATE (
COUNT ( 'Table'[Column E] ),
FILTER (
'Table',
'Table'[Column E] = "*Response*"
&& 'Table'[Column D] = [@Number]
)
)
RETURN
IF ( _count1 > 1 && _count2 > 1, "Duplicate", "No" )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |