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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Measure that returns related IDs to me

Good day team,

SOLICITUD_IDIDENTIFICATIONSURNAME
1195416790503NEPHEW
119601152407932BROWN
120044372152864FUENMAYOR
11954161153463113MONTEJO

I have a table with the following columns, as you can see there are requests that have more than one '1195416' ID associated with them

I want to create a measure that, regardless of whether I have filtered by ID '790503' shows me all the IDs associated with the SOLICITUD_ID that is filtered.

I already have a measurement that, regardless of the filter by ID '790503', brings me the number of different IDs.

No. Headlines = CALCULATE(DISTINCTCOUNT(BASE_FINAL[ID]),BASE_FINAL[SOLICITUD_ID]=SELECTEDVALUE(BASE_FINAL[SOLICITUD_ID]),REMOVEFILTERS())

If anyone knows how to find out what those IDs are that are leaking, I appreciate it

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a slicer table and a measure [flag]. 

Slicer = VALUES('BASE_FINAL'[IDENTIFICATION])
Flag = 
var _a=SELECTEDVALUE('Slicer'[IDENTIFICATION])
var _b=CALCULATE(MAX('BASE_FINAL'[SOLICITUD_ID]),FILTER(ALLSELECTED('BASE_FINAL'),'BASE_FINAL'[IDENTIFICATION]=_a))
return IF(MAX('BASE_FINAL'[SOLICITUD_ID]) = _b,1,0)

(3) Place [Flag=1] on visual object screening and then the result is as follows.

vtangjiemsft_0-1703052819487.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a slicer table and a measure [flag]. 

Slicer = VALUES('BASE_FINAL'[IDENTIFICATION])
Flag = 
var _a=SELECTEDVALUE('Slicer'[IDENTIFICATION])
var _b=CALCULATE(MAX('BASE_FINAL'[SOLICITUD_ID]),FILTER(ALLSELECTED('BASE_FINAL'),'BASE_FINAL'[IDENTIFICATION]=_a))
return IF(MAX('BASE_FINAL'[SOLICITUD_ID]) = _b,1,0)

(3) Place [Flag=1] on visual object screening and then the result is as follows.

vtangjiemsft_0-1703052819487.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.