Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I am running into some issues with a formula i am trying to create.
I want to add a column that returns "missed", "picked-up", or leave it blank based on several parameters. I created the formula the same way i would in excel but my inexperience might be showing here.
The columns are formatted as text for Shipment number and dates for Planned load.end and Ac.GI/GR Date
Solved! Go to Solution.
HI @jn55561n,
It seems like your expression are try to compare with different data type of values which Dax expression not supported.
For this scenario, I'd like to suggest you change these fields type or add convert function on your compare step to confirm the expression are compared with the same data type.
Missed vs Picked Up =
IF (
AND (
'Query1'[Shipment Number] <> "",
DATEVALUE ( 'Query1'[Planned load. end] ) < TODAY ()
),
IF ( 'Query1'[Ac.GI/GR Date] <> BLANK (), "Picked Up", "Missed" ),
""
)
Regards,
Xiaoxin Sheng
Here is the DAX code:
Missed vs Picked Up =
IF (
AND (
'Query1'[Shipment Number] <> "",
AND ( 'Query1'[Planned load. end] < TODAY (), 'Query1'[Ac.GI/GR Date] <> "" )
),
"Picked Up",
IF (
AND (
'Query1'[Shipment Number] <> "",
AND ( 'Query1'[Planned load. end] < TODAY (), 'Query1'[Ac.GI/GR Date] = "" )
),
"Missed",
""
)
)
HI @jn55561n,
It seems like your expression are try to compare with different data type of values which Dax expression not supported.
For this scenario, I'd like to suggest you change these fields type or add convert function on your compare step to confirm the expression are compared with the same data type.
Missed vs Picked Up =
IF (
AND (
'Query1'[Shipment Number] <> "",
DATEVALUE ( 'Query1'[Planned load. end] ) < TODAY ()
),
IF ( 'Query1'[Ac.GI/GR Date] <> BLANK (), "Picked Up", "Missed" ),
""
)
Regards,
Xiaoxin Sheng
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |