Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm trying to get a date as the x axis for a scatter plot, which Power BI refuses to allow. As a workaround, converting the date to a whole number allows for plotting this along the x axis. However, the labels are now in whole number format instead of date (43466 vs 1/1/2019). Is there a way to hack the format string of a whole number to display the result as a date while keeping the underlying data type as a whole number?
Solved! Go to Solution.
I can put a date on the X axis. Put your date there, and data on the Y axis.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting
You can convert datevalue (43466) to date (e.g. 03/06/2019) using the following formulas:
DAX
Date = Format(Date[DateValue],"mm/dd/yyyy")
Power Query:
Date = CONVERT(Date[DateValue], DATETIME)
Make sure though that the field is numeric .. If it is text convert to numeric first (best to do in Query Editor - Power Query).
You can convert datevalue (43466) to date (e.g. 03/06/2019) using the following formulas:
DAX
Date = Format(Date[DateValue],"mm/dd/yyyy")
Power Query:
Date = CONVERT(Date[DateValue], DATETIME)
Make sure though that the field is numeric .. If it is text convert to numeric first (best to do in Query Editor - Power Query).
I can put a date on the X axis. Put your date there, and data on the Y axis.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
106 | |
87 | |
75 | |
66 |
User | Count |
---|---|
126 | |
112 | |
99 | |
81 | |
73 |