Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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"
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
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 this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |