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

manipulating monthly data in power query editor

I am trying to merge two queries. The first query has Agents Credits Amount data by day. The second has agent call count data by month. What adjustments can I make  in the query editor to allow me to view agents credits Amount by month. My ultimate goal is to merge these two tables and view this data from the agents perspective. For instance  I would like to see monthly credit amount and call count by agent,I would also like to see the call center of the agent. Am I taking the correct approach? below are my two data sets 

 

Credits Given
Date_of_CreditCredit AmountACTIVITY_DESCRIPTIONCompanyCallCenterAgent
01/01/2018$20.00Courtesy Notre DameJamaicadsfsf
01/01/2018$0.23Protect                       EmoryJamaicasfbyby
01/01/2018$15.00ExtensionEmoryNew Zealandtryr
01/01/2018$3.00Courtesy EmoryMexicot
01/01/2018$15.00Courtesy Notre DameJamaicaytyt
01/01/2018$5.00ExtensionNotre DameLiberiautnun

 

 

Calls Handled
AgentCompanyCallCenterMonthNameCall Count
fdfdfdNotre DameJamaicaJanuary1000
dvvffEmoryJamaicaJanuary12121
tryrEmoryNew ZealandJanuary1213
tEmoryMexicoJanuary343
ytytNotre DameJamaicaJanuary132132
utnunNotre DameLiberiaJanuary3545
dreggdEmoryLiberiaJanuary6655
dfdfEmoryJamaicaJanuary766
1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

If you don't care about having daily credit data, then you can add a MonthName column to the first table (Formula = Date.MonthName([Date_of_Credit])) and do a Group By summing over Credit Amount.

 

 

MonthName.png

 

Then you can merge the tables on Agent and MonthName and pull over Call Count from the second table.

 

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

If you don't care about having daily credit data, then you can add a MonthName column to the first table (Formula = Date.MonthName([Date_of_Credit])) and do a Group By summing over Credit Amount.

 

 

MonthName.png

 

Then you can merge the tables on Agent and MonthName and pull over Call Count from the second table.

 

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.