Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I have a problem.
This is the table (events) I have:
Every time when a user on a specific date and the same "timing" ("morning" or "evening") has the status "Alert" and there are on this specific date for the same user records with status "AlertScore" it has to return "1" in "NewColumn". In all other records "0"has to be returned. So when there is "AlertScore" with no "Alert" it has to rerturn "0" as well.
I cannot figure this out, anyone of you can?
Would be great,
govi
Solved! Go to Solution.
Create a calculate column using DAX below:
New Column = IF ( Table1[Status] = "Alert", 0, IF ( CALCULATE ( COUNTROWS ( Table1 ), FILTER ( ALLEXCEPT ( Table1, Table1[timestamp], Table1[Timing], Table1[User] ), Table1[Status] = "Alert" ) ) <> 0, 1, 0 ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Create a calculate column using DAX below:
New Column = IF ( Table1[Status] = "Alert", 0, IF ( CALCULATE ( COUNTROWS ( Table1 ), FILTER ( ALLEXCEPT ( Table1, Table1[timestamp], Table1[Timing], Table1[User] ), Table1[Status] = "Alert" ) ) <> 0, 1, 0 ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can create a calculated column to solve your problem. Refer the below link for detailed explanation. Hope it helps!
https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |