- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Categorize by one of the values
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, @Greg_Deckler and @VahidDM .
I applied the following and that seems to work:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Aleksandra_MLT Maybe MIN([IsError])?
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @Greg_Deckler .
IsError is my desired output. So I used MIN([Status]) and it creates a column with "Error" value only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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])
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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✌️!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, @Greg_Deckler and @VahidDM .
I applied the following and that seems to work:

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-16-2024 09:36 AM | |||
09-25-2024 05:30 AM | |||
10-04-2024 11:07 PM | |||
10-24-2024 10:21 AM | |||
05-26-2024 09:38 PM |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |