Forum Discussion
Populating Column data in order table form different columns combination mix in Freight table
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
It is for creating a new column.
Expected result CC =
VAR _result =
SUMMARIZE (
FILTER (
Freight,
Freight[City] = 'Order'[CITY]
&& Freight[State] = 'Order'[State]
&& Freight[Shippoint] = 'Order'[Shipping point]
),
Freight[TDAYS (working days)]
)
RETURN
IF ( ISBLANK ( _result ), 30, _result )
Thanks for your quick Response.
but I am getting belwo error , is there somehting I am mising?
Thanks
- Jihwan_Kim3 years agoSuper User
Hi,
I am not sure, but I think you are using different structure than the sample that you provided.
I think the sample showed only one expected result, however, yours shows more than one result as if you want to show more than one result.
The DAX formular that I wrote is meant to show table format result, but if it only contains one row & one column, it also shows non-table format as well.
I am not sure what is your expected result if it shows more than one result. If you want to show MAX, then please try using MAXX insteas of using SUMMARIZE. If you want to show MIN, then please try using MINX instead of using SUMMARIZE. Or, what is your expected result when it contains more than one result?
- Vemul3 years agoHelper I
Thanks Agin,
getting close.
I have achieved belwo by changing code but not sure how to populate "30" days if doesn't match any combinations
any suggestions Please
Thanks
Vijay
- Jihwan_Kim3 years agoSuper User
Hi,
Please try to write,
LT Days calcualted column =
VAR _yourresult = CALCULATE(..............................)RETURN
IF (ISBLANK(_yourresult), 30, _yourresult)