Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sudheerbolla
Helper II
Helper II

Need Help in fixing the Date Issue

Created PolicyEndDate calculated column  by following DAX function

 

PolicyEndDate = Var _PolicyNo = MAX(Consolidated[POLICY_NUMBER (Imported)])
Return
IF(
    OR(
        Consolidated[EVENT_CODE (Imported)]="cancel_policy",
        Consolidated[EVENT_CODE (Imported)]="cancel_policy_non_payment"
    ),
MAXX(FILTER(ALL(Consolidated),Consolidated[POLICY_NUMBER (Imported)]=_PolicyNo),Consolidated[Crediting Date]),
BLANK()
)
 
Created 
sudheerbolla_1-1687982295706.png

when i drag and drop the PolicyEndDate column in the canvas area, it is showing as below

sudheerbolla_2-1687982394518.png

I want only in date format like 4/21/2023 instead of Herirachy. How to resolve this. Please let me know. Thank you


 

2 REPLIES 2
sudheerbolla
Helper II
Helper II

Used selectedvalue(), this has solved the problem. on right-click on PolicyEndDate in the visual and select the non-date heirarchy option is not found.
 
PolicyEndDate1 = Var _PolicyNo = SELECTEDVALUE(Consolidated[POLICY_NUMBER (Imported)])
Return
IF(
    OR(
        SELECTEDVALUE(Consolidated[EVENT_CODE (Imported)])="cancel_policy",
        SELECTEDVALUE(Consolidated[EVENT_CODE (Imported)])="cancel_policy_non_payment"
    ),
MAXX(FILTER(ALL(Consolidated),Consolidated[POLICY_NUMBER (Imported)]=_PolicyNo),Consolidated[Crediting Date]),
BLANK()
)
vicky_
Super User
Super User

You'll need to right-click on PolicyEndDate in the visual and select the non-date heirarchy option

vicky__0-1687990624043.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.