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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jmadsen
Frequent Visitor

Date Slicer for Data Table from Multiple Sources

I have a report that brings in multiple queries from a SQL database, then brings puts them into a simple table.  I'm trying to add a date slicer to the report.  The queries only go back 90 days from the run date, so I created a calendar in PowerBI that goes back 90 days like this:

 

Calendar = CALENDAR(
TODAY()-90,
TODAY()-1
)
 
I then created relationships to all my query date fields.  However, when I select dates in my slider, my data vanishes.
 
Before Slicing:
 
jmadsen_0-1669672510853.png

After Slicing

jmadsen_1-1669672540079.png

 

 These are the relationships I created:

jmadsen_2-1669672586305.pngjmadsen_3-1669672609845.png

They're all set to Many to 1 and Single in cross filter direction.  I'm pretty sure this is where my issue is, as I'm not very familiar with cardinality.  Any assistance is appreciated.

 
 

 

 

3 REPLIES 3
aj1973
Community Champion
Community Champion

Hi @jmadsen 

That depends on what column Date you put into the slicer. You have too many columns date and each column or each date correspond to their specific data.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Amine,

 

That's why I created the calendar, linked them to my data, and only put the calendar date into the slicer field.

Is there a better way to do it?

aj1973
Community Champion
Community Champion

It's a good thing you have created a Calendar, I didn't mean otherwise. 

In order to display data that apply for each Column date in the Master Table you need to create measures for using USERELATIONSHIP() function.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.