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 have 2 identical queries that are respectively imported query and one direct query.
I need to make the imported query in direct query so I can make a scheduled refresh.
I have a date in the imported sales table [ClosedAt] that is Date/Time, I try and extract the date in a custom column [ClosedAtDate]=
Solved! Go to Solution.
HI @Rosenmeyer ,
You can't direct use column in measure formula, please add aggregation function to summary column value:
ClosedAtDay =
VAR currDate =
MAX ( 'Sales import'[ClosedAt] )
RETURN
DATE ( YEAR ( currDate ); MONTH ( currDate ); DAY ( currDate ) )
Calculated Columns and Measures in DAX
Regards,
Xiaoxin Sheng
Hi @Rosenmeyer ,
According to your error message, it seems like power bi not able to recognized dynamic table field records. I'd like to suggest you use measure to calculate on row contents level.
Regards,
Xiaoxin Sheng
Hi, if I understand you correctly, when I create a measure with the same formula this happens:
HI @Rosenmeyer ,
You can't direct use column in measure formula, please add aggregation function to summary column value:
ClosedAtDay =
VAR currDate =
MAX ( 'Sales import'[ClosedAt] )
RETURN
DATE ( YEAR ( currDate ); MONTH ( currDate ); DAY ( currDate ) )
Calculated Columns and Measures in DAX
Regards,
Xiaoxin Sheng
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 |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |