The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Team,
Please help me out below
I am expecting Cat wise MinDate but Status is closed just we have to ignore the line item and only consider Open Status.
Thank you
@ Greg_Deckler @Fowmy
Solved! Go to Solution.
Hi @Anonymous ,
Try to create a calculated column or meausre like below.
Columns:
MinDatebyCat_Column1 =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER (
'Table',
'Table'[Cat] = EARLIER ( 'Table'[Cat] )
&& 'Table'[Status] = "Open"
)
)
MinDatebyCat_Column2 =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[Cat] ), 'Table'[Status] = "Open" )
)
Measure:
MinDatebyCat_Measure1 =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Cat] = MAX ( 'Table'[Cat] )
&& 'Table'[Status] = "Open"
)
)
MinDatebyCat_Measure2 =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[Cat] ), 'Table'[Status] = "Open" )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try to create a calculated column or meausre like below.
Columns:
MinDatebyCat_Column1 =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER (
'Table',
'Table'[Cat] = EARLIER ( 'Table'[Cat] )
&& 'Table'[Status] = "Open"
)
)
MinDatebyCat_Column2 =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[Cat] ), 'Table'[Status] = "Open" )
)
Measure:
MinDatebyCat_Measure1 =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Cat] = MAX ( 'Table'[Cat] )
&& 'Table'[Status] = "Open"
)
)
MinDatebyCat_Measure2 =
CALCULATE (
MIN ( 'Table'[Date] ),
FILTER ( ALLEXCEPT ( 'Table', 'Table'[Cat] ), 'Table'[Status] = "Open" )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I need "Result Column", Cat wise "min date" if status is "Open"
Hi @Anonymous .
Can you please elaborate what exactly your requirement is or provide an expected output?
Regards,
Sanket
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
21 | |
14 | |
14 | |
9 | |
7 |