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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors