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
jay_patel
Helper IV
Helper IV

Also want a child - Project No's in Grid, for every selected parent's Project No.

hello All

 

Here I am facing an issue, as client want's to display child's projects number also in grid. And the slicer only having parent's Project No.

 

For ex if i am selecting '0003-03' project no . then the grid also should display project no's ('0003-01-01','0003-01-02','0003-01-03'),for your refrence also attaching an image.Biznet-query.png

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @jay_patel,

 

You need create a calculated table as:

 

Slice_table = 
VALUES('Table'[Project No.])

 

Create a measure as:

 

Measure = 
var _len=LEN(MAX('Slice_table'[Project No.]))
var _len1=LEN(MAX('Table'[Project No.]))
return
IF(
    _len<=_len1,
    IF(LEFT(MAX('Table'[Project No.]),_len)=LEFT(MAX('Slice_table'[Project No.]),_len),1,0),
    0
)

 

 Drop the measure to visual level filter as:

v-xulin-mstf_0-1622089517356.png

Here is the output:

v-xulin-mstf_1-1622089583608.png

You can try the attached demo.

 

Best Regards,
Link

 

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

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @jay_patel,

 

You need create a calculated table as:

 

Slice_table = 
VALUES('Table'[Project No.])

 

Create a measure as:

 

Measure = 
var _len=LEN(MAX('Slice_table'[Project No.]))
var _len1=LEN(MAX('Table'[Project No.]))
return
IF(
    _len<=_len1,
    IF(LEFT(MAX('Table'[Project No.]),_len)=LEFT(MAX('Slice_table'[Project No.]),_len),1,0),
    0
)

 

 Drop the measure to visual level filter as:

v-xulin-mstf_0-1622089517356.png

Here is the output:

v-xulin-mstf_1-1622089583608.png

You can try the attached demo.

 

Best Regards,
Link

 

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

amitchandak
Super User
Super User

@jay_patel , do you have a project column with a value format you are sharing.

 

Based on what I can see, You need one

Project Code = left[project no.], 7)

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.