Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
i am using survey table in my data model which has last_response_date column
last_response_date has value '01-01-1900' for around 30 surveys
i created calendar table using below expression by ignoring '01-01-1900' to avoid creating huge calendar table
if i do this then it is ignoring 30 records in my report
is there a way to create date table without ignoring 30 records ?
Date =
VAR MinDate = CALCULATE(MIN(survey[last_response_date]), survey[last_response_date] <> DATE(1900, 1, 1))
VAR MaxDate = CALCULATE(MAX(survey[last_response_date]), survey[last_response_date] <> DATE(1900, 1, 1))
RETURN
CALENDAR(MinDate, MaxDate)
Solved! Go to Solution.
Hi, @powerbiexpert22
Perhaps you need to sacrifice your computer's performance and create an entire date table.
Date =
VAR MinDate = CALCULATE(MIN(survey[last_response_date]))
VAR MaxDate = CALCULATE(MAX(survey[last_response_date]))
RETURN
CALENDAR(MinDate, MaxDate)
And then create a calculated column or measure to filter out other values other than 1-1-1900.
FilteredLastResponseDate =
IF(survey[last_response_date] = DATE(1900, 1, 1), BLANK(), survey[last_response_date])
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @powerbiexpert22, Hope you are doing good!
If you don't want to create entire date table then you can follow below workaround:
Keep your date table as it is
Create a new table manually (using enter data) having only one row for 01-01-1900
Append the table to your date table
in this way you will have all records in your table or visuals
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
Hi, @powerbiexpert22
Perhaps you need to sacrifice your computer's performance and create an entire date table.
Date =
VAR MinDate = CALCULATE(MIN(survey[last_response_date]))
VAR MaxDate = CALCULATE(MAX(survey[last_response_date]))
RETURN
CALENDAR(MinDate, MaxDate)
And then create a calculated column or measure to filter out other values other than 1-1-1900.
FilteredLastResponseDate =
IF(survey[last_response_date] = DATE(1900, 1, 1), BLANK(), survey[last_response_date])
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You could update the value in Power Query to NULL, Blank or the minimum date you want in your table.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |