Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I was trying to convert this dax column in to measure which I'm failing, Can anyone of you help me on this?
IF(ISBLANK([Ship Date]),BLANK(),
CALCULATE(MIN('Table A'[Ship Date]),
FILTER('Table A','Table A'[Customer]=EARLIER('Table A'[Customer])),
FILTER('Table A','Table A'[Status]="Shipped"),
FILTER('Table A','Table A'[Item]<>"TAP")))
Solved! Go to Solution.
HI,
I am not sure how your semantic model looks like or how your expected outcome of the visualization looks like, but please try something like below whether it suits your requirement.
expected result measure: =
CALCULATE (
MIN ( 'Table A'[Ship Date] ),
FILTER (
'Table A',
'Table A'[Ship Date] <> BLANK ()
&& 'Table A'[Customer]
IN VALUES ( 'Table A'[Customer] )
&& 'Table A'[Status] = "Shipped"
&& 'Table A'[Item] <> "TAP"
)
)
Hi @Sri57 ,
You can create a measure as below to get it, and the precondition is the field [Ship Date] and [Customer] need to be applied on the visual.
Measure =
VAR _shipdate =
SELECTEDVALUE ( 'Table A'[Ship Date] )
VAR _customer =
SELECTEDVALUE ( 'Table A'[Customer] )
RETURN
IF (
ISBLANK ( _shipdate ),
BLANK (),
CALCULATE (
MIN ( 'Table A'[Ship Date] ),
FILTER (
ALLSELECTED ( 'Table A' ),
'Table A'[Customer] = _customer
&& 'Table A'[Status] = "Shipped"
&& 'Table A'[Item] <> "TAP"
)
)
)
Best Regards
Hi @Sri57 ,
You can create a measure as below to get it, and the precondition is the field [Ship Date] and [Customer] need to be applied on the visual.
Measure =
VAR _shipdate =
SELECTEDVALUE ( 'Table A'[Ship Date] )
VAR _customer =
SELECTEDVALUE ( 'Table A'[Customer] )
RETURN
IF (
ISBLANK ( _shipdate ),
BLANK (),
CALCULATE (
MIN ( 'Table A'[Ship Date] ),
FILTER (
ALLSELECTED ( 'Table A' ),
'Table A'[Customer] = _customer
&& 'Table A'[Status] = "Shipped"
&& 'Table A'[Item] <> "TAP"
)
)
)
Best Regards
HI,
I am not sure how your semantic model looks like or how your expected outcome of the visualization looks like, but please try something like below whether it suits your requirement.
expected result measure: =
CALCULATE (
MIN ( 'Table A'[Ship Date] ),
FILTER (
'Table A',
'Table A'[Ship Date] <> BLANK ()
&& 'Table A'[Customer]
IN VALUES ( 'Table A'[Customer] )
&& 'Table A'[Status] = "Shipped"
&& 'Table A'[Item] <> "TAP"
)
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 11 | |
| 6 | |
| 5 |