Forum Discussion

abecks44's avatar
abecks44
Regular Visitor
1 year ago
Solved

Date Table & Data Model question

Hey all,   First time post, sorry if my explaination isn't amazing as I've just been learning PowerBI for the past month or two. I'm currently setting up dashboards for my company for invoice forec...
  • MNedix's avatar
    MNedix
    1 year ago

    What do you want to measure for each table? Let's assume we use the following columns for some measures:
    - Table = Timesheets, Column = Hours Actual

    - Table = Unique Deliverables, Column = Cost/HHP

     

    The corresponding measures will be:

    Hours = SUM('Timesheets'[Hours Actual])
    
    Cost = CALCULATE(SUM(Cost/HHP), USERELATIONSHIP('2024-2025 Dates'[Date],'Unique Deliverables'[Invoice Forecast])

     

    For the first measure you don't need to do much since it has an active relationship with the Date table.

     

    And you should be able to plot in a chart the 2nd measure using the measure as Y and '2024-2025 Dates Table'[Date] for X axis.