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 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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 34 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |