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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
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.