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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Google Analytics: wrong cost after filtering

Kindly ask you to help me with my issue.

 

I am loading data from GA:

= Cube.Transform(#"182827499",
{
{Cube.AddAndExpandDimensionColumn, "ga:date", {"ga:date"}, {"Date"}},
{Cube.AddAndExpandDimensionColumn, "ga:campaign", {"ga:campaign"}, {"Campaign"}},
{Cube.AddMeasureColumn, "Cost", "ga:adCost"}
})

 

 

 

I filter table by date 11/1/2020 and get following data: (attention to the first line - cost 7.20) - this is proper cost, which I also see in google analytics page

11/1/2020GDN_Brand_Underdog_Audience(keyword)_00220217.20
11/1/2020GDN_CEO_Audience(keyword)_00130127.18
11/1/2020GDN_Finance_2_0_Audience(keyword)_00720317.16
11/1/2020GDN_Finplan_Retargeting_UA_00620320.15
11/1/2020GDN_Marketing_core_Retargeting_UA_00420210.25
11/1/2020GSP_Keys_ALL_00080054.23
11/1/2020Retargeting_ALL_00080053.08
11/1/2020Search_Brand_UA_00080050.08
11/1/2020Search_Brand_Underdog_UA_00220210.01
11/1/2020Search_Competitors_UA_00080050.09
11/1/2020Social_All_Proudcts_0008005_SUPERLUDI_FriendsFollowers_Website142.43
11/1/2020Social_All_Proudcts_0008005_SUPERLUDI_Retargeting_Website183.20
11/1/2020Social_CEO_0013012_Interests_Website_CPA148.85
11/1/2020Social_Marketing-Core_0042021_Website_CPA99.00
11/1/2020Social_Prodigy-Finance_0072031_Interests_Website65.51
11/1/2020Social_digital_marketing_0052021_Interests_Website_CPA_v2225.44

 


Then I paste any step before filtering. For example, duplicate one of the existing column. And after filtering by the same date 11/1/2020 you can see I get following data: (attention to the first line - cost 8.40) - this cost is wrong, it is bigger than the right one.

11/1/2020GDN_Brand_Underdog_Audience(keyword)_00220218.40GDN_Brand_Underdog_Audience(keyword)_0022021
11/1/2020GDN_CEO_Audience(keyword)_00130128.38GDN_CEO_Audience(keyword)_0013012
11/1/2020GDN_Finance_2_0_Audience(keyword)_00720318.35GDN_Finance_2_0_Audience(keyword)_0072031
11/1/2020GDN_Finplan_Retargeting_UA_00620320.17GDN_Finplan_Retargeting_UA_0062032
11/1/2020GDN_Marketing_core_Retargeting_UA_00420210.29GDN_Marketing_core_Retargeting_UA_0042021
11/1/2020GSP_Keys_ALL_00080054.93GSP_Keys_ALL_0008005
11/1/2020Retargeting_ALL_00080053.60Retargeting_ALL_0008005
11/1/2020Search_Brand_UA_00080050.10Search_Brand_UA_0008005
11/1/2020Search_Brand_Underdog_UA_00220210.02Search_Brand_Underdog_UA_0022021
11/1/2020Search_Competitors_UA_00080050.10Search_Competitors_UA_0008005
11/1/2020Social_All_Proudcts_0008005_SUPERLUDI_FriendsFollowers_Website142.43Social_All_Proudcts_0008005_SUPERLUDI_FriendsFollowers_Website
11/1/2020Social_All_Proudcts_0008005_SUPERLUDI_Retargeting_Website183.20Social_All_Proudcts_0008005_SUPERLUDI_Retargeting_Website
11/1/2020Social_CEO_0013012_Interests_Website_CPA148.85Social_CEO_0013012_Interests_Website_CPA
11/1/2020Social_Marketing-Core_0042021_Website_CPA99.00Social_Marketing-Core_0042021_Website_CPA
11/1/2020Social_Prodigy-Finance_0072031_Interests_Website65.51Social_Prodigy-Finance_0072031_Interests_Website
11/1/2020Social_digital_marketing_0052021_Interests_Website_CPA_v2225.44Social_digital_marketing_0052021_Interests_Website_CPA_v2

 

 

I realy can`t get what is the problem. Maybe the reason is that cost is MeasuredColumn, but how can I fix it?

1 REPLY 1
AllisonKennedy
Super User
Super User

@Anonymous  What do you mean 'paste any step before filtering' ? Are you working in Power Query? Have you done a merge? This can often add extra rows if you're not careful and make your values increase unexpectedly. https://excelwithallison.blogspot.com/2020/10/merge-ahead-one-for-one.html 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors