Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
Columns are not allowed, you can have measure but the display would depend on context
Day Name = FORMAT(max('Date'[By Date]), "ddd")
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
User | Count |
---|---|
98 | |
90 | |
78 | |
71 | |
64 |
User | Count |
---|---|
114 | |
97 | |
95 | |
68 | |
65 |