Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
bhmiller89
Helper V
Helper V

IF ALL, Then

I have data that shows help desk tickets. Each ticket has multiple actions which is stored in a table called "Actions" where it lists every action taken within the ticket. One column is "IsAuto" and if there is a -1 it means it is an auto generated action and if it is a 0 then it is not automated action.

 

I need to find a way to say "IF ALL Actions on a Help desk tickets are automated (=-1), then "automated ticket" else "Not automated ticket" 

4 REPLIES 4
v-jiascu-msft
Employee
Employee

Hi @bhmiller89,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
Super User

May be something clever, thinking loud here. Do sum of all automated IsAuto value of each action of a ticket, and also do the count of actions,  if abs(sum) = count of actions it means all tickets were -1 and that means it is "automated ticket". 

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

It didn't work as a column but it rendered properly as a measure:

 

SelfHealed = IF(DISTINCTCOUNT('dpmgr tblHDActions'[ActionID])=[abssum], "Self Healed", "Not Self Healed")

 

However, I need to use "Self Healed" vs "Not Self Healed" as a slicer, which I can't do with a measure (to my knowledge) 

@bhmiller89

For a calculated column, something like this should work.

 

By the way I'm inferring column/table names from your earlier post and guessing there's a TicketID. Please change as needed.

 

SelfHealed =
IF (
    CALCULATE (
        SELECTEDVALUE ( 'dpmgr tblHDActions'[ActionID] ),
        ALLEXCEPT ( 'dpmgr tblHDActions', 'dpmgr tblHDActions'[TicketID] )
    )
        = -1,
    "Self Healed",
    "Not Self Healed"
) 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.