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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Chris_G_TP
Regular Visitor

Compare the value of a column in one visual to a column in another visual

Hello all,

 

I am trying to compare the value of a column in one visual to a column in another visual.  The underlying table is the same for both visuals but using separate queries, one for each visual.  The Date Slicer is linked to the first visual and the Date_2 slicer is linked to the second.  When I sunbtract vol% from vol_2% I get 0, some research showed me that even though the Vol% is a calculated column or a variable defined in the first visual, the Date2 slicer is contolling the first table. I've tried turning relationship on and off with no change in results, also tried related does not support computed columns in the visual

 

So my question is this, how can I pull the values from the Date Slicer to be used in a query by the Date_2 Visual?  I've tried

End_Date = CALCULATE(MAX(CALL_TYPE_COMBINED[Date]),ALLSELECTED(CALL_TYPE_COMBINED)). However that
references the table and not the slicer and I end up with the same results.
 
Any insight on how to solve this would be greately apreciated.

 

Slicer Reference.jpg

1 ACCEPTED SOLUTION

I tried setting up an unrelated table using the dates from the primary table, however that did not work.  I resolved my issue by using one visual then changing from a computed column to a measure.  I then used CALCULATE with it's own set of filters to retrive the month to date data.Slicer Reference - Solution.jpg

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Chris_G_TP , Need to understand how you have done it. If volume1 and volume2 have same formula(same table) other than date range then one of them has to use independent date table for range

 

refer my video example

How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg

 

 

or

 Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I tried setting up an unrelated table using the dates from the primary table, however that did not work.  I resolved my issue by using one visual then changing from a computed column to a measure.  I then used CALCULATE with it's own set of filters to retrive the month to date data.Slicer Reference - Solution.jpg

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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