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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-cgao-msft
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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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