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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Create arbitrary link between visuals

Lets say we have a data set which has "year" among other dimensions (not the datetime - year as integer), and visual built upon this dataset. We also have a calendarauto() based slicer which allows us to select year and filter displayed data. Visual's dataset is NOT linked to calendarauto() table.

Is there any way to create a link between the slicer and this visual, so selecting year on the slicer would filter the data?

9 REPLIES 9
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can create a YEAR column in Calendar Date table. Then use this column to establish a relationship between you data-set and Date table.

This will make slicers work the way you are looking for.

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Relationships are out of question because of the dreaded "circular relationship" error. We just cannot create them when needed.

Hi @Anonymous ,

 

Is there an existing relationship betwwen your Date table and data-table? Or are these individually connected to any other table?

Can you try pasting a screenshot of the data model with relationships in Power BI here?

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

There is no relationship (within the model).

Hi @Anonymous ,

 

Can you paste your sample data here, along with the datatypes the columns have in both tables?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

I cannot post the sample data because, if I only recreate 2 tables the answer would be "create a relationship". But as I've already mentioned above, creating relationship is out of question because this would create circular relationships.

The question is rather simple. There is a CALENDARAUTO() - based slicer that lets you select years. There is also a table that has a "year" column (integer) and other data, and visual built using this table. The goal is: slicer should filter the visual.

Hi,

 

Please try this measure:

 

Measure = IF(MAX('Table'[Year])=SELECTEDVALUE('Calendar'[Year]),1,0)

 

Then apply this measure to the visuals by setting measure=1.

The result shows:

15.PNG

See my attached pbix file.

 

Best Regards,

Giotto

Anonymous
Not applicable

I cannot even reproduce this configuration in actual file. In your example, CALENDARAUTO-based table has no year/quarter/month fields - somehow, because in real file it is impossible to remove fields or edit CALENDARAUTO() hierarchy in any way.

How did you delete hierarchy from calendarauto?

Hi,

 

It is because i created relationship between them which will break the calendar hierarchy.

Please check my attached file again.

 

Best Regards,

Giotto

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.