Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all. Seemed simple one but got stuck here:
There is a list of devices (ID) which can send an error or informational event. Some ID's can have both status messages. What I would like to do is categorize them in a way so if there is an error and informational event for same ID, it would say 'error'. Kind of ranking.
Both M and Dax solutions are welcome. Thank you in advance.
Solved! Go to Solution.
Thank you, @Greg_Deckler and @VahidDM .
I applied the following and that seems to work:
@Aleksandra_MLT Maybe MIN([IsError])?
Hi, @Greg_Deckler .
IsError is my desired output. So I used MIN([Status]) and it creates a column with "Error" value only.
@Aleksandra_MLT Yeah, my thought was a measure and you are correct, I meant MIN([Status]), If a column you could do:
MINX(FILTER('Table',[ID]=EARLIER([ID])),[Status])
Try to add a column with this DAX code:
IsError =
VAR _Error =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Status] ),
ALLEXCEPT ( 'Table', 'Table'[ID] )
)
RETURN
IF ( _Error > 1 || 'Table'[Status] = "Error", "Error", "Informational event" )
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos✌️!!
Thank you, @Greg_Deckler and @VahidDM .
I applied the following and that seems to work:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
13 | |
11 | |
10 | |
10 |