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
I recently switched from import mode to directquery, but the format function no longer works.
Below is the format I used to use in the import mode, that I can get ex: Mon, Tues, Wed, ....
Solved! Go to Solution.
hi @Anonymous
Since FORMAT Function is not supported in directquery.
You could use SWITCH Function to create a column as below:
Day Name = SWITCH( WEEKDAY('Date'[By Date],2),
1,"Mon",
2,"Tue",
3,"Wed",
4,"Thu",
5,"Fri",
6,"Sat",
7,"Sun")
Regards,
Lin
Thanks. I'd need it in columns, because I want display each date in the column with its day name.
I'll instead achieve this in a SQL query then. In the meanwhile, can PBI add this feature in the DirectQuery mode?
Thanks.
hi @Anonymous
Since FORMAT Function is not supported in directquery.
You could use SWITCH Function to create a column as below:
Day Name = SWITCH( WEEKDAY('Date'[By Date],2),
1,"Mon",
2,"Tue",
3,"Wed",
4,"Thu",
5,"Fri",
6,"Sat",
7,"Sun")
Regards,
Lin
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.
| User | Count |
|---|---|
| 57 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 38 | |
| 34 | |
| 23 |