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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Values in list

Hello, 

I need some help with the following. I have a dataset consisting of different matches and their historical stages. I want to calculate how many of those matches have stage "3.1 | Kandidaat voorgesteld aan klant" and from those how many also have stage "4.0 | Kandidaat mag op gesprek bij klant". In SQL it would look like this: 

 

select *
from matches_hist mh
where mh.stage = '4.0 | Kandidaat mag op gesprek bij klant' and mh.matchID in
(select distinct mh.matchID
from matches_hist mh
where mh.stage = '3.1 | Kandidaat voorgesteld aan klant'

)

 

 

 

I have troubles with the second part in the SQL code  

mh.matchID in (select distinct matchID
from matches_hist mh
where stage = '3.1 | Kandidaat voorgesteld aan klant'

)

 

I have tried using values(), but I am not able to add the condition stage = '3.1 | Kandidaat voorgesteld aan klant'

Could anyone help me with this problem?

 

Thanks in advance!

Regards, Gino

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I was able to find a solution myself. For the people wanting to know. You can use the functions calculatetable(values(), <filter conditions>).

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I was able to find a solution myself. For the people wanting to know. You can use the functions calculatetable(values(), <filter conditions>).

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.