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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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



Pic 2



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:





Community Support
Community Support

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.


Best Regards,

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.