Forum Discussion

Yaru_828's avatar
Yaru_828
Frequent Visitor
2 years ago
Solved

Assistance Needed - DAX Measure

Hello Guys,

Based on the following data, several visualizations have been created, but how can "Start Date" & "End Date" & "Age of Project" & "Update On" visualizations display N/A when selecting anything from "Project" and "Project Code"?

 

ProjectProject CodeStatusStart Date(1st Engagement)End Date(Latest SOW)Age of Project(in Years)Updated on
A22525Inactive4/1/201912/31/20223.507/25/2022
B20870Active1/1/20193/1/20255.008/7/2024
C40525Active2/11/20191/1/20255.004/9/2024
D26101Active4/9/20149/30/202610.007/9/2024
E20430Active11/3/20154/30/20278.007/9/2024
F25085Active12/18/201912/31/20244.008/5/2024

 

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Yaru_828 ,

     

    You can create measures for "Start Date" & "End Date" & "Age of Project" & "Update On" visualizations.

    For example,

     

    end date = IF(ISFILTERED('Table'[Project])||ISFILTERED('Table'[Project Code]),"N/A",FORMAT(MAX('Table'[End Date(Latest SOW)]),"mm/dd/yyyy"))

     

    When you don't select anything from "Project" and "Project Code", it displayed the date.

    When you select something from "Project" and "Project Code", it displayed "N/A".

     

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

5 Replies

    • Yaru_828's avatar
      Yaru_828
      Frequent Visitor

      hello dear, thanks for your resources

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Yaru_828 ,

     

    You can create measures for "Start Date" & "End Date" & "Age of Project" & "Update On" visualizations.

    For example,

     

    end date = IF(ISFILTERED('Table'[Project])||ISFILTERED('Table'[Project Code]),"N/A",FORMAT(MAX('Table'[End Date(Latest SOW)]),"mm/dd/yyyy"))

     

    When you don't select anything from "Project" and "Project Code", it displayed the date.

    When you select something from "Project" and "Project Code", it displayed "N/A".

     

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Yaru_828's avatar
    Yaru_828
    Frequent Visitor

    目标:实现不做任何筛选的情况下,某些可视化按固定的要求展示内容

    解决方案如下:

     

    end date = IF(ISFILTERED('Table'[Project])||ISFILTERED('Table'[Project Code]),"N/A",FORMAT(MAX('Table'[End Date(Latest SOW)]),"mm/dd/yyyy")) 

     

     

    age of project = IF(ISFILTERED('ITO BPO China Program-China'[Project])||ISFILTERED('ITO BPO China Program-China'[Project Code]),SUM('ITO BPO China Program-China'[Age of Project(in Years)]),"N/A") 

     

     

    SDM Selection = IF( ISFILTERED('Active Headcount'[Active Project]), SELECTEDVALUE('Active Headcount'[China SDM], "NA"), "NA" )