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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
raju8004
Frequent Visitor

data Modelling

i have date column in sharepoint csv file and i have created date table by using calender(min(date column),today()) to establish a relationship berween tables to create a dynamic date range for slicer filter ,unfortunantely its not working and giving blank results.

can anyone help me to resolve

3 REPLIES 3
Alex87
Solution Sage
Solution Sage

create the date table in Power Query, see code here - Extended Date Table (Power Query M function) - Power Query / M Code Showcase - Enterprise DNA Forum

Make sure you have the same data type for the two columns used for the relationship.

 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!




DateTable1 =
ADDCOLUMNS (
    CALENDAR (MIN('CR Monitoring'[sys_created_on]), TODAY()),
    "Year", YEAR([Date]),
    "MonthNumber", MONTH([Date]),
    "MonthName", FORMAT([Date], "MMMM"),
    "Quarter", "Q" & FORMAT(QUARTER([Date]), "0"),
    "YearMonth", FORMAT([Date], "YYYYMM"),
    "YearMonthName", FORMAT([Date], "YYYY MMMM"),
    "Day", DAY([Date]),
    "Weekday", WEEKDAY([Date], 2),
    "WeekdayName", FORMAT([Date], "dddd")
)

created date table using above code

both table dates are same format  i have made forgot to mention but not 

working

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.