Forum Discussion

Muzammil_Abdul's avatar
Muzammil_Abdul
Regular Visitor
4 months ago
Solved

need help on creating a Power BI report

Hi All, i am new to Power BI and i am trying to create this report for more than 5 days buti am not able to do it, please help me.

 

I have the following tables in Power BI:

  • projects_data
  • workitems_data
  • worktimes_data
  • sprints_data
  • ai_time_history

 

I need to build a report with these filters:

  • projects_data.projectCategory
  • Month(can take from any table but should filter all the tables and charts)
  • sprints_data.name

And a Table visual that should display these columns:

  • workitems_data.issueKey
  • workitems_data.issueSummary
  • workitems_data.issueType
  • workitems_dataissueRunningStatus (Status)
  • projects_data.projectName
  • workitems_data.Sprint Name
  • worktimes_dat.totaltimehrs

Additionally, I need two calculated fields:

1. AI Dev Hrs Saved

2. AI Testing Hrs Saved

Logic for both:

  • Each issueId has multiple records in ai_time_history
  • The field column contains two relevant values:
    • "AI Dev Hrs Saved"
    • "AI Testing Hrs Saved"
  • For each issueId, find records for the respective field
  • Use changedAt to identify the latest record
  • Return the corresponding latest changedTo value

Example:

issueId field changedTo changedAt
101AI Dev Hrs Saved2Jan
101AI Dev Hrs Saved5Feb
101AI Dev Hrs Saved8Mar

Expected output for issue 101:

AI Dev Hrs Saved = 8

Same logic applies for AI Testing Hrs Saved.

Please suggest:

  1. Correct data model relationships
  2. DAX/calculated table/measures needed
  3. Best approach to ensure slicers filter everything correctly

 

  • For your reference.

    There are four relationships below.

        'projects_data'[projectId] 1----* 'workitems_data'[issueProjectId]

        'projects_data'[projectId] 1----* 'sprints_data'[projectId]

        'projects_data'[projectId] 1----* 'worktimes_data'[issueId]

        'projects_data'[projectId] 1----* 'at_time_history'[issueId] <-- There were no matching IDs in those two data tables."

     

     

     

4 Replies