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
Grewin
Frequent Visitor

How to get the total cost per result and amount spent according to date range

Hi folks,

 

I have two tables, 1. exported leads from Infusionsoft and the 2. data report from Facebook ads manager. 

 

The report from Infusionsoft will be used to count how many leads opt-in in each ads created in Facebook.

 

The goal is to create a report that will determine the total amount spent  and cost per lead (total amount spent per ad / lead count per ad) per Facebook base on the date range selected.

 

Sample Report for Infusionsoft

https://docs.google.com/spreadsheets/d/1t_Y3JlfFWCKEcBQvWwobFSCFGy6zmMepYg_XM6tTRKQ/edit?usp=sharing

 

sample FB report

https://docs.google.com/spreadsheets/d/1u0QYrOITjLKyCsogp-iv_PI-_4DblWyqxVFyTelTSCE/edit?usp=sharing

 

Goal report will look like this:

Grewin_1-1664850727733.png

 

 

Thank you in advance for your insights

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Grewin , It should be a measure  like

 

divide(Sum(Table[mount spent per ad]), Count(Table[Ad ID]))

 

for overall

=calculate(divide(Sum(Table[mount spent per ad]), Count(Table[Ad ID])) , allselected())

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Grewin , It should be a measure  like

 

divide(Sum(Table[mount spent per ad]), Count(Table[Ad ID]))

 

for overall

=calculate(divide(Sum(Table[mount spent per ad]), Count(Table[Ad ID])) , allselected())

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.