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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
anwilkins
Resolver II
Resolver II

Get Avg Days when data is in 60 columns

I need to create a table that shows two columns

  1. Average days from "Cred Paperwork Completed Date to Submitted Date" Per Insurance Carrier
  2. Average days from "Submitted Date to Effective Date" Per Insurance Carrier

The desired output should look like Pic 1, however,  the data is housed in 62 different date columns as previewed in pic 2

Pic 1

anwilkins_0-1671049661912.png     

 

Pic 2

anwilkins_2-1671050997981.png

 

I've tried to unpivot the columns in a new table and I've tried creating 20 calculated columns to count the days then get the averages but I'm not able to create the desired chart. Thanks for all ideas and as an FYI, not all clinicians get credentialed by every insurance provider so there are a lot of blank date fields.

 

Sample Data Here: https://docs.google.com/spreadsheets/d/1utsy80043RvkXQZ6hARR44E7TLUKGnVy/edit?usp=sharing&ouid=11334...

 

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @anwilkins ,

Taking the first record of the new table as an example, could you please tell me how to get 36 and 5?

By converting it, I can get a table like this, but I don't know how to calculate the next step.

vcgaomsft_1-1671095229643.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Hi Gao, I had done a similar test where I took all the insurance carrier columns and Unpivoted to get them into one column. Then took all the Sumbitted Date columns and unpivoted and finished by doing the same with the Effective Date columns. The problem is that it is not looking at things on a row level so I dont get a valid Avg day account. But thanks for chiming in!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.