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.
Hi. I am trying to new Measure with DATEDIFF.
Example that I expected:
My stitution:
I guess the problem is table name and column name are written in Chinese.
Table Name: COPTD-FT-客戶訂單單身資料檔
Column Names: 預交日 & 原預交日
These two columns type are Date.
Can anyone tell me how to deal with this problem? Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
The problem is not in the Chinese name. The problem lies in the measure you use. If you use the measure, you need to add MAX/MIN here to determine the row of your column name.
If you are adding a calculated column, you do not need to use MAX/MIN, as shown below.
The difference is the context of evaluation. A measure is evaluated in the context of the cell evaluated in a report or in a DAX query, whereas a calculated column is computed at the row level within the table it belongs to.
Reference: measure vs calculated column
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
The problem is not in the Chinese name. The problem lies in the measure you use. If you use the measure, you need to add MAX/MIN here to determine the row of your column name.
If you are adding a calculated column, you do not need to use MAX/MIN, as shown below.
The difference is the context of evaluation. A measure is evaluated in the context of the cell evaluated in a report or in a DAX query, whereas a calculated column is computed at the row level within the table it belongs to.
Reference: measure vs calculated column
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
I think your column name displayed wrongly in your formula. maybe try to remove extra single qutotation marks.
Proud to be a Super User!
Covering 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 |
---|---|
111 | |
94 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |