March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Solved! Go to Solution.
Hi @vswar ,
To convert your Tableau Bounce Rate formula into Power BI, you can use a DAX approach to replicate the functionality of Tableau's FIXED and INCLUDE functions. Here’s how to structure the formula:
To replicate { INCLUDE [Matmovisit ID] : SUM([interactions]) } = 1, you’ll need to calculate interactions per Matmovisit ID and flag those with only one interaction.
InteractionsPerVisit =
CALCULATE(
SUM('Table'[Interactions]),
ALLEXCEPT('Table', 'Table'[Matmovisit ID])
)
BounceFlag =
IF([InteractionsPerVisit] = 1, 1, 0)
Then, sum up the visits with only one interaction across all Matmovisit ID values.
TotalBounces =
CALCULATE(
SUMX(
VALUES('Table'[Matmovisit ID]),
IF([InteractionsPerVisit] = 1, 1, 0)
)
)
Now that you have the count of bounces, you can divide by the total number of visits to get the bounce rate.
BounceRate =
DIVIDE(
[TotalBounces],
COUNT('Table'[Matmovisit ID]),
0
)
In summary:
This should give you a similar outcome to your Tableau formula.
Best regards,
Hi @vswar ,
To convert your Tableau Bounce Rate formula into Power BI, you can use a DAX approach to replicate the functionality of Tableau's FIXED and INCLUDE functions. Here’s how to structure the formula:
To replicate { INCLUDE [Matmovisit ID] : SUM([interactions]) } = 1, you’ll need to calculate interactions per Matmovisit ID and flag those with only one interaction.
InteractionsPerVisit =
CALCULATE(
SUM('Table'[Interactions]),
ALLEXCEPT('Table', 'Table'[Matmovisit ID])
)
BounceFlag =
IF([InteractionsPerVisit] = 1, 1, 0)
Then, sum up the visits with only one interaction across all Matmovisit ID values.
TotalBounces =
CALCULATE(
SUMX(
VALUES('Table'[Matmovisit ID]),
IF([InteractionsPerVisit] = 1, 1, 0)
)
)
Now that you have the count of bounces, you can divide by the total number of visits to get the bounce rate.
BounceRate =
DIVIDE(
[TotalBounces],
COUNT('Table'[Matmovisit ID]),
0
)
In summary:
This should give you a similar outcome to your Tableau formula.
Best regards,
Thanks you so much for this. Your DAX functions are calculating the data precisely.
Hi @vswar
Please provide a workable sample data and your expected result from that. It is hard to figure out what you want to achieve from the description alone.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
169 | |
144 | |
90 | |
70 | |
58 |