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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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

Click here to schedule a short Teams meeting to discuss your question.

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

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors