Forum Discussion

manojk_pbi's avatar
manojk_pbi
Helper V
6 months ago
Solved

Need help in creatin calculated columns or DAX Measure

Hi Friends,

 

I have 2 source table to track the cost report submitted for any projects. In the master table, against each project it is marked Yes/No/NA to have reports for G2 or G5. Report table contains cost report reference for the project at G2 or G5 as per the tagging in the master.

 

The requirement here is to identify the missing reports and present as KPI. Here is short description orlogic to identigy the missing onces

Gate is to indicate which gate is this project
G2 Date/G5 Date: Planned Dates for respective gates
Report at G2/Report at G5 : Expected reports at this gates once gate is passed

Report at G2/Report at G5 - when value is no , not consider for any calculations. Need to ignore (Prj8)

G2 / G5 Ageing : Need to calculated ageing w.r.t today when gate is already passed and not found any report in reports table.
G2/G5 Availbility : Need to check the report availibility in the reports table against the project and Gate. If record present in Reports table mark it as Yes,else No. If Report at G2/G5 is NA, update the same here as well

 

 

Cost Report Required : Count of projects where Report at G2 is Yes and  Gate >= G2 (same for G5)

Cost Report Available : Count of projects where Report at G2 is Yes and  Gate >= G2 (same for G5) and corresponding report entry preent in Report table

Output tables 

 Cost Report RequiredCost Report Available%
G27342.9%
G55360.0%
 12650.0%
PrjGateG2 DateG5 DateReport at G2Report at G5G2 AgeingG5 AgeingG2 AvailibilityG5 Availibility
Prj1G24-Jan-264-Apr-26YesNA  Yes 
Prj2G34-Jan-264-Apr-26YesYes  Yes 
Prj3G54-Jan-264-Feb-26NAYes  NAYes
Prj4G54-Jan-264-Feb-26YesYes49 NoYes
Prj5G54-Jan-264-Feb-26YesYes  YesYes
Prj6G54-Jan-264-Feb-26NAYes 19NANo
Prj7G44-Jan-264-Apr-26YesNA 19NoNA
Prj8G24-Jan-264-Apr-26NoNo    
Prj9G44-Jan-264-Apr-26NANA  NANA
Prj10G24-Feb-264-Apr-26YesYes19 No 
Prj11G54-Feb-251-Feb-26YesYes36523NoNo
Prj12G14-Mar-251-Oct-26YesYes  NANA
Master Table    
PrjGateG2 DateG5 DateReport at G2Report at G5
Prj1G24-Jan-264-Apr-26YesNA
Prj2G34-Jan-264-Apr-26YesYes
Prj3G54-Jan-264-Feb-26NAYes
Prj4G54-Jan-264-Feb-26YesYes
Prj5G54-Jan-264-Feb-26YesYes
Prj6G54-Jan-264-Feb-26NAYes
Prj7G44-Jan-264-Apr-26YesNA
Prj8G24-Jan-264-Apr-26NoNo
Prj9G44-Jan-264-Apr-26NANA
Prj10G24-Feb-264-Apr-26YesYes
Prj11G54-Feb-251-Feb-26YesYes
Prj12G14-Mar-251-Oct-26YesYes
ReportTable  
PrjReportIDGateReportDt
Prj1Rep1G24-Jan-26
Prj2Rep2G24-Jan-26
Prj3Rep3G54-Feb-26
Prj4Rep4G54-Feb-26
Prj5Rep5G24-Jan-26
Prj5Rep5G54-Feb-26
  • Hi manojk_pbi ,

    Thank you for reaching out to the Microsoft Community Forum.

     

    Please refer below output snaps and attached PBIX file.

     

     

    I hope this information helps. Please do let us know if you have any further queries.

     

    Regards,

    Dinesh

3 Replies

  • v-dineshya's avatar
    v-dineshya
    Community Support

    Hi manojk_pbi ,

    Thank you for reaching out to the Microsoft Community Forum.

     

    Please refer below output snaps and attached PBIX file.

     

     

    I hope this information helps. Please do let us know if you have any further queries.

     

    Regards,

    Dinesh

    • v-dineshya's avatar
      v-dineshya
      Community Support

      Hi manojk_pbi ,

      We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.

       

      Regards,

      Dinesh

      • v-dineshya's avatar
        v-dineshya
        Community Support

        Hi @manojk_pbi ,

        We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.

         

        Regards,

        Dinesh