Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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"
)
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |