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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Lorenz33
Helper IV
Helper IV

Report Filters

I am making a report with 5 pages, each page uses a different database view.  3 of them have a filed called ReportPeriod which is a date.  I would like to add a report filter so that when a date is entered once, it will apply to the other pages too.  But Power BI will not let me make this relationship, because this field is not unique.  Is there a way to do this?

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @Lorenz33 

You would need a Date table that you could link into all three data tables.  Then you apply the filtering to the date table.  The DAX expression below will generate a basic date table covering all the dates in your model.

Dates = 
VAR DateRange = CALENDARAUTO()

RETURN
ADDCOLUMNS(
    DateRange,
    "Year",YEAR ( [Date] ),
    "Month", FORMAT ( [Date], "mmmm" ),
    "MonthNum", MONTH ( [Date] ),
    "Month Year", FORMAT ( [Date], "mmm-yyyy"),
    "MonthYearNum", YEAR ( [Date] ) * 100 + MONTH ( [Date] ),
    "Quarter Year", "Q" & FORMAT ( [Date], "q-yyyy" ),
    "QtrYearNum", YEAR ( [Date] ) * 100 + VALUE ( FORMAT ( [Date], "q" ) )
)

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

Hello @Lorenz33 

You would need a Date table that you could link into all three data tables.  Then you apply the filtering to the date table.  The DAX expression below will generate a basic date table covering all the dates in your model.

Dates = 
VAR DateRange = CALENDARAUTO()

RETURN
ADDCOLUMNS(
    DateRange,
    "Year",YEAR ( [Date] ),
    "Month", FORMAT ( [Date], "mmmm" ),
    "MonthNum", MONTH ( [Date] ),
    "Month Year", FORMAT ( [Date], "mmm-yyyy"),
    "MonthYearNum", YEAR ( [Date] ) * 100 + MONTH ( [Date] ),
    "Quarter Year", "Q" & FORMAT ( [Date], "q-yyyy" ),
    "QtrYearNum", YEAR ( [Date] ) * 100 + VALUE ( FORMAT ( [Date], "q" ) )
)

I have a view that has all of the unique dates.  But I cannot make the relationship since it is not considered unique.  Will this method make what Power BI considers to be unique?

It will, yes.  Each date row in the date table is unique.

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.