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
SHDJason
Advocate II
Advocate II

how to calculate a simple Rev per Visit

I'm sure this is easy but for some reason I can't solve it. 

 

I have a table. 

There is one dimension and two metrics -- Tactic, Visits, Revenue.  

 

I need to create a simple measure that shows revenue per visit.

 

Tactic 1 has 28,782 visits and $55,565 revenue.

 

Here is what I get:

Avg. Revenue = sum([revenue]) / sum([Visits] = $3.86 when average is selected

Capture.PNG

 

Avg. Revenue = sum([revenue]) / sum([Visits] = $138.94 when sum is selected

 

When "Do Not Summarize" is selected, the table expands out and does not summarize by tactic.

 

The correct answer is $1.93 but nothing gives me that answer. Why?

 

 

1 ACCEPTED SOLUTION

Here is what I have found. I was able to get the right numbers using this formula:

 

[Final Measure] = Divide([Measure1],[Measure2])

 

where [Measure1] = sum(value) and [Measure2] = sum(value)

 

Also, I had to create new measures, not edit existing measures. It would keep giving me the same wrong answers unless I created new measures with the correct formula. Maybe there is something with the way the data is cached.

 

Thanks for your help, everyone.

 

Fun stuff!

View solution in original post

9 REPLIES 9
Sean
Community Champion
Community Champion

@SHDJason 

 

Add Tactic to the Table - and select Do Not Summarize

And create your Measure as in the image

Revenue per Visit.png

 

Hi @Sean. It does not give me the "Do Not Summarize" option. 

 

Capture2.PNG

Sean
Community Champion
Community Champion

@SHDJason

 

What is the icon next to your Measure? Could you have created a Column instead of Measure?

 

Revenue per Visit2.png

Here is what I have found. I was able to get the right numbers using this formula:

 

[Final Measure] = Divide([Measure1],[Measure2])

 

where [Measure1] = sum(value) and [Measure2] = sum(value)

 

Also, I had to create new measures, not edit existing measures. It would keep giving me the same wrong answers unless I created new measures with the correct formula. Maybe there is something with the way the data is cached.

 

Thanks for your help, everyone.

 

Fun stuff!

GilesWalker
Skilled Sharer
Skilled Sharer

@SHDJason Welcome to my initial pains with PBI. It is an easy calculation to get the anwser you want. You need to create a measure to do this, see the screen shot below of a test page I made:

Average revenue.PNG

 

 

The DIVIDE function takes away the issue of dividing by 0.

 

Hope this helps.

 

Giles

Hi @GilesWalker.  Thanks for your help. Here is what I am getting. Still not right. 

 

Capture.PNG

 

 

 

I'm very confused. This should not be hard. 

 

 

 

 

Sean
Community Champion
Community Champion

What are the columns in your table? What is in the Tactic Column?

The tactic column is just a dimension. Nothing complicated.

Ok, check this out:

 

Total Revenue = sum([revenue)

Total Sessions = sum([sessions])

 

 

Revenue per Visit == Rev 2 but the answers are different. Rev 2 is correct. NO idea why.

 

Capture3.PNG

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.