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

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.

Reply
ritar_li
Frequent Visitor

How to identify a service number that is associated with two service names?

Hello, 

I'm trying to identify service # that includs two service names A AND B. My table is

ServiceService#
A1
B1
A2
A5
A3
B3
B4

 

I'm a new user to Power BI. If this question is duplication of previous post(s). Please direct me to right track. I appreciate your help ahead.  

 

Hong

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ritar_li , A new column

new column =

var _1= calculate(distinctcount(Table[Service]), filter(Table, [Service#] =earlier([Service#]) && [Service] in {"A", "B"}))

return

if(isblank(_1), false(), true())

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ritar_li , A new column

new column =

var _1= calculate(distinctcount(Table[Service]), filter(Table, [Service#] =earlier([Service#]) && [Service] in {"A", "B"}))

return

if(isblank(_1), false(), true())

Hi, dear supper user, 

I have a new issue just came out related to question above. My company just dropped off the service B after 9/1/2021. As a result, the vales in colume after 9/1/2021 turn in False. I have problem to fomulate a calculation to experess this time point change. I greatly appreciate your help. 

Hong 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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