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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
hanuraolm
Helper I
Helper I

Slicer values should be filteted based on selected values (disconneted tables)

Sample data as below - 

BuildCategoryPRNumberSeq
b1Cat1PR10101
b2Cat2PR10222
b3Cat3PR103333
b4Cat1PR104444
b5Cat2PR10555
b6Cat3PR45676

 

Req –

 

In the above table we have a build column with text attribute and users need to capability to choose the fromBuild and toBuild. 

To achieve this we a created a sequence col based on build

Two disconnected tables based on build 1.FromBuild 2.ToBuild

Created a measure as below –

               # Of PRs =

CALCULATE (

    DISTINCTCOUNT (build[PRNumber] ),

    FILTER (

        build,

        (build[Seq] >= 5  && build[Seq]<=6)))

5,6 are hardcoded but these values are passing from disconnected tables. Now no issues every thing working as expected.

 

Now the problem is, if we need to create a slicer based on Category (highlited below) from build table and these values should be filtered between the selected fromBuild and toBuild values. This I couldn’t able to achieve this. Can you help on this.

 

hanuraolm_1-1689346587584.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @hanuraolm 

You can refer to the following measure, it does not need to create the seq column

# Of PRs =
IF (
    ISFILTERED ( frombuild[Build] ) && ISFILTERED ( frombuild[Build] ),
    CALCULATE (
        DISTINCTCOUNT ( build[PRNumber] ),
        FILTER (
            build,
            [Build] >= SELECTEDVALUE ( frombuild[Build] )
                && [Build] <= SELECTEDVALUE ( tobuild[Build] )
        )
    ),
    CALCULATE (
        DISTINCTCOUNT ( build[PRNumber] ),
        FILTER ( build, [Build] >= "b5" && [Build] <= "b6" )
    )
)

Output

vxinruzhumsft_0-1689557797989.png

 

Best Regards!

Yolo Zhu

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
Anonymous
Not applicable

Hi @hanuraolm 

You can refer to the following measure, it does not need to create the seq column

# Of PRs =
IF (
    ISFILTERED ( frombuild[Build] ) && ISFILTERED ( frombuild[Build] ),
    CALCULATE (
        DISTINCTCOUNT ( build[PRNumber] ),
        FILTER (
            build,
            [Build] >= SELECTEDVALUE ( frombuild[Build] )
                && [Build] <= SELECTEDVALUE ( tobuild[Build] )
        )
    ),
    CALCULATE (
        DISTINCTCOUNT ( build[PRNumber] ),
        FILTER ( build, [Build] >= "b5" && [Build] <= "b6" )
    )
)

Output

vxinruzhumsft_0-1689557797989.png

 

Best Regards!

Yolo Zhu

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.