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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.