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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Remove Extra Date Slicers

 

Annotation 2020-05-01 120855.pngI have this report that I need to filter by date. There are three odbc queries in this report. Each one of these date filters is from a different report. I have tried making a relationship between them but whenever I delete one of them the data gets messed up and no longer shows the correct data. What am I doin wrong?

6 REPLIES 6
edhans
Super User
Super User

You should have ONE date table, and use only the dates from that table in all measures, slicers, visuals, etc. Trying to relate multiple date fields from different tables to other tables, besides the date table, would be a nightmare.

 

In my models, all date fields from any tables not in the Date table itself are hidden from the report view so I cannot accidentally use them.

 

See this article. If you need help creating a date table, or how to get everything in one place, ping back.

Creating a Dynamic Date Table in Power Query



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

I don't think date tables will work. There is missing dates and duplicate dates in the query.

That is why you need a date table. It has no missiing dates, and becomes the 1 to many with other tables that can have missing or duplicated dates.

 

There is not a model in existence for Power BI that has date that cannot work with a date table. You might want to read up on a Star Schema, and a date table is a core component of this if the model has any dates.

 

Without a date table, you are going to continue to have difficult making it work as you want, and you may even discover some things are simply not possible without it.

 

Try it.

  1. Create a date table as per below, or for now, just use CALENDAR() and add custom columns (which I generally recommend against - see below)
  2. Mark it as a date table
  3. Turn off automatic date/time intelligence in options so it exclusively uses your date table
  4. Link all date filelds you care about to the Date column of your date table. Note: Only one can be active for each table. That's ok. You can activate others with the USERELATIONSHIP() modifier in a CALCULATE() if you need to use some date math off of a different field (Shipping date vs Sold date for example in a sales data table)
  5. Use ONLY the Date field or other fields in the Date table (year, quarter, whatever) in your measures and visuals.

In general, try to avoid calculated columns. There are times to use them, but it is rare. Getting data out of the source system, creating columns in Power Query, or DAX Measures are usually preferred to calculated columns. See these references:
Calculated Columns vs Measures in DAX
Calculated Columns and Measures in DAX
Storage differences between calculated columns and calculated tables
Creating a Dynamic Date Table in Power Query



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
Anonymous
Not applicable

Ok I was able to set up a date table however now I cant use my other slicer as "That would introduce ambiguity" Is there a way I can do both?

Yes. Need to see your model though. You are connecting tables in a way that doesn't have a clear and distinct path between tables. Again, Star Schema. Sounds like you have a SnowFlake Schema.

 

Post pics, or a link to a PBIX file that has confidential data removed.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Just wondering if you've made progress with this @Anonymous 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.