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 want a Dax with a IF Statement like this:
if [counts] = "Yes" then [date]&[mdm ID]&[User ID] else null
Can you Help me?
Solved! Go to Solution.
You already provided the solution yourself:
CC = IF ( [counts] = "Yes", [date] & [mdm ID] & [User ID], "null" )
Hi @rmeng ,
Is this a Calculated Column or a measure?
For a Calculated Column
Calculated Column = if ('Table'[Count] = "Yes", 'Table'[date] & 'Table'[mdm ID] & 'Table'[User ID] , BLANK())
If [Count] is a measure.
Then create a measure
Measure = if ([Count] = "Yes", 'MAX(Table'[date]) & MAX('Table'[mdm ID]) & MAX('Table'[User ID]) , BLANK())
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
You already provided the solution yourself:
CC = IF ( [counts] = "Yes", [date] & [mdm ID] & [User ID], "null" )
User | Count |
---|---|
25 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |