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
dw700d
Post Patron
Post Patron

Calculating percentages with monthly and daily data

Hello, 

 

I have two tables with approx 1 million rows. Each table includes data from Jan 2018 until Present.  The "Count of Fees Waived" column is based on daily inputs.This data includes site and Agent. The "Calls Handled data" is based on monthly inputs, it includes site but does not include agent.  I am trying to calculate Monthly Count of Fee Waiver rates as a percentage of Monthly Calls Handled.  I tried to create a new measure to calculate "Monthly Fee Waiver Rates" and when I view this new measure by month the calculation is way off, it is extremely low.  I believe it has something to do with my "Count of Fee Waivers" data being daily while my "calls handled" data is monthly.  I also tried to establish a relationship between the two tables but this did not work.  My end goal is to include the Monthly Count of Fee Waiver rates in a chart that allows me to drill down to site level and agent level. Can anyone help me?

 

MonthsSiteCalls Handled
Janstanton9113
Janovertown9698
Jankingston3515
Janlinstead10810
Janmabelton13045
DateSiteAgent idCount of Fee Waivers
1/1/2018

stanton

abcd2
1/2/2018overtownadsdsd6
1/3/2018mabletondsfsf1
1/4/2018linsteadsds9
1/5/2018burchellasasa1
1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

You will need a relationship between the two based on Site. To do this, create a bridge table like:

 

Table = DISTINCT('Table'[Sites])

Alternatively, you could create a column in each table like this:

 

Column = CONCATENATE([Months],[Site])

Column = CONCATENATE(FORMAT([Date],"mmm"),[Site])

And use those as your relationship.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

You will need a relationship between the two based on Site. To do this, create a bridge table like:

 

Table = DISTINCT('Table'[Sites])

Alternatively, you could create a column in each table like this:

 

Column = CONCATENATE([Months],[Site])

Column = CONCATENATE(FORMAT([Date],"mmm"),[Site])

And use those as your relationship.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Greg Deckler..Thank you very much that did the trick

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.