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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
HarryB
Resolver I
Resolver I

user conversation rate with Dax

 

I am trying to calculate google analytics 4 user conversation rate with Dax

 

This is how it should be calculated 

  1. User conversion rate: the number of users who triggered a conversion event divided by the total number of users, times 100.

Can someone provide me with a dax sample PBI file which can help make these calculations and see the dax code used 

Example below

NameUsersUser Converstion rate
Green14,4963.05%
Purple12,9894.58%
Red8,0974.45%

 

Thanks

 

1 ACCEPTED SOLUTION
AmiraBedh
Resident Rockstar
Resident Rockstar

Your measure can be something like : 

 

User Conversion Rate = 
DIVIDE(
    SUM(YourTableName[Conversions]),
    SUM(YourTableName[Users]),
    0
) * 100

Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

4 REPLIES 4
CoderZen08
Helper III
Helper III

Hi @HarryB DAX is one way but since 2.0 connector is still in beta you can have some issues. As a workaround, you can try to test your connection with a 3rd party tool. I've tried windsor.ai, supemetrics and funnel.io. I stayed with Windsor because it is much cheaper so just to let you know about other options. In case you wonder, to make the connection first search for the GA4 connector in the data sources list:

 

GA4-1.png

 

After that, just grant access to your GA4 account using your credentials, then on preview and destination page you will see a preview of your GA4 fields:

 

GA4-2.png

 

There just select the fields you need. Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url. 

 

SELECT_DESTINATION_NEW.png

HarryB
Resolver I
Resolver I

@AmiraBedh thanks for your help I will give it a go

@AmiraBedh if I put your code into a column what would the data type setting if I want decimals and %. 

 

So right now i have my data in a column

- Name = User Conversion rate

- Data type =Decimal number

- Format = Percentage

- decimal place = 0

Summarizarion = Sum

Data Category = Uncategorized

 

Using your dax code my calculations looks like this in my table

Users - 98171

User Conversation Rate 96649%

Please can you help to point me in the right direction.

Thanks

AmiraBedh
Resident Rockstar
Resident Rockstar

Your measure can be something like : 

 

User Conversion Rate = 
DIVIDE(
    SUM(YourTableName[Conversions]),
    SUM(YourTableName[Users]),
    0
) * 100

Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.