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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Gopinath_iyer
Helper II
Helper II

calculation help

Hi All,

DateNumber
19-Sep-22100
19-Sep-22100
19-Sep-22102
20-Sep-22103
20-Sep-22103
20-Sep-22103

 

Number
100
102
104
105

 

I want to create a visual by comparing the above tables

there will be a date filter, so when "19-Sep-22" is selected the visual should show

Number
104
105

 

and "20-Sep-22" is selected it should show

Number
100
102
104
105

 

can this be achieved?

 

regards,

Gopi

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi,

I suggest having a disconnected table like below, and put the measure (below) into the Visual Filters Pane.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1667806319353.png

 

Jihwan_Kim_1-1667806612396.png

 

Filter pane measure: =
IF (
    COUNTROWS (
        FILTER ( Number, NOT ( Number[Number] IN DISTINCT ( Data[Number] ) ) )
    ) = 0,
    0,
    1
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

Anonymous
Not applicable

Hi @Gopinath_iyer ,

 

Check this formula:

Measure = IF(SELECTEDVALUE('Table (2)'[Number]) in DISTINCT('Table'[Number]),1,0)

vjaywmsft_0-1669715426887.png

 

Best Regards,

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Gopinath_iyer ,

 

Check this formula:

Measure = IF(SELECTEDVALUE('Table (2)'[Number]) in DISTINCT('Table'[Number]),1,0)

vjaywmsft_0-1669715426887.png

 

Best Regards,

Jay

Jihwan_Kim
Super User
Super User

Hi,

I suggest having a disconnected table like below, and put the measure (below) into the Visual Filters Pane.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1667806319353.png

 

Jihwan_Kim_1-1667806612396.png

 

Filter pane measure: =
IF (
    COUNTROWS (
        FILTER ( Number, NOT ( Number[Number] IN DISTINCT ( Data[Number] ) ) )
    ) = 0,
    0,
    1
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

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.