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

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

Reply
jen8080
Helper I
Helper I

Creating new column and a calculated column

Hello-
I need to be able to pull the 'Live' Milestone Actual date into a column for each ID.
I then need to be able to pull the 'In Date' Milestone Actual date into a column for each ID.

Then I need to compare the dates, if the 'Live' Actual data is blank, it would be 'N/A', if the 'In Date' was blank it would be "Yes" and if the 'Live'<'In Date', "Yes", "No"

I made this in a matrix but need it in column because I can't get the measures to populate any charts.
Any help is appreciated!
Here is a sample the data

jen8080_0-1601665388638.png

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@jen8080, try these calculated columns:

 

Live Actual Date = 
VAR vID = Milestone[ID]
VAR vTargetRow =
    FILTER ( Milestone, Milestone[ID] = vID && Milestone[Milestone Name] = "Live" )
VAR vResult =
    MAXX ( vTargetRow, Milestone[Actual Date] )
RETURN
    vResult


In Date Actual Date = 
VAR vID = Milestone[ID]
VAR vTargetRow =
    FILTER ( Milestone, Milestone[ID] = vID && Milestone[Milestone Name] = "In Date" )
VAR vResult =
    MAXX ( vTargetRow, Milestone[Actual Date] )
RETURN
    vResult


Calc Column = 
VAR vLiveActualDate =
    Milestone[Live Actual Date]
VAR vInDateActualDate =
    Milestone[In Date Actual Date]
VAR vResult =
    SWITCH (
        TRUE (),
        ISBLANK ( vLiveActualDate ), "N/A",
        ISBLANK ( vInDateActualDate ), "Yes",
        vLiveActualDate < vInDateActualDate, "Yes",
        "No"
    )
RETURN
    vResult

 

DataInsights_0-1601677101638.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @jen8080,

Did DataInsights 's suggestion help for your scenarioIf this is a case, you can consider accepting this suggestion to help other users with the same requirement.
If not, you can feel free to post here with detailed information and descriptions.

Regards,

Xiaoxin Sheng

DataInsights
Super User
Super User

@jen8080, try these calculated columns:

 

Live Actual Date = 
VAR vID = Milestone[ID]
VAR vTargetRow =
    FILTER ( Milestone, Milestone[ID] = vID && Milestone[Milestone Name] = "Live" )
VAR vResult =
    MAXX ( vTargetRow, Milestone[Actual Date] )
RETURN
    vResult


In Date Actual Date = 
VAR vID = Milestone[ID]
VAR vTargetRow =
    FILTER ( Milestone, Milestone[ID] = vID && Milestone[Milestone Name] = "In Date" )
VAR vResult =
    MAXX ( vTargetRow, Milestone[Actual Date] )
RETURN
    vResult


Calc Column = 
VAR vLiveActualDate =
    Milestone[Live Actual Date]
VAR vInDateActualDate =
    Milestone[In Date Actual Date]
VAR vResult =
    SWITCH (
        TRUE (),
        ISBLANK ( vLiveActualDate ), "N/A",
        ISBLANK ( vInDateActualDate ), "Yes",
        vLiveActualDate < vInDateActualDate, "Yes",
        "No"
    )
RETURN
    vResult

 

DataInsights_0-1601677101638.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




mhossain
Solution Sage
Solution Sage

@jen8080 

Not clear to me, do you need one row for one ID? Do you want to transform the sample data you provided, in the PowerBI how your table looks like?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.