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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

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
Super User
Super User

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 V
Helper V

Hi @Anonymous 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

Anonymous
Not applicable

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

Anonymous
Not applicable

@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
Super User
Super User

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.