- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Measure with Divide from a dataset
I connected to a dataset with some basic measure. Adding the measure in a table with report builder, by default, adds "sum". This works fine when I have measure that are sum anyway. But I have one measure that divides two other sums to figure out the % discount. Report builder is still putting sum in front of that measure reference from the dataset and my summarized output is wrong. This measure works fine in a table in BI desktop. I think its calculating the divide function on the individual rows then adding it up together in the table that I am showing. Instead of what BI Desktop does which is take the sum of the values in the summarized table output and then divide.
Is there a way to get the same behavior from the report builder table as I get using that measure in the Desktop table for BI reports?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to regenerate the formula at the Reporting Builder Table/Matrix. Because it is not a good practrice to SUM or AVG or any other aggregation to the measures that are returning Percentages or ratios.
In power bi desktop the measure calculating on run time. But in report builder you have all your dataset comes first and then it render in the report. That means that if you have discount percentages at product Level. It will not return you discount percentages at Product Category level as your dataset contains further granular data in the dataset. So it is best to return Values in the dataset and recreate percentage or ratios formula at Report Builder cell level thats where you will get the correct results.
I hope I have clarifed to you.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to regenerate the formula at the Reporting Builder Table/Matrix. Because it is not a good practrice to SUM or AVG or any other aggregation to the measures that are returning Percentages or ratios.
In power bi desktop the measure calculating on run time. But in report builder you have all your dataset comes first and then it render in the report. That means that if you have discount percentages at product Level. It will not return you discount percentages at Product Category level as your dataset contains further granular data in the dataset. So it is best to return Values in the dataset and recreate percentage or ratios formula at Report Builder cell level thats where you will get the correct results.
I hope I have clarifed to you.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Proud to be a Super User!

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
07-28-2024 01:48 AM | |||
05-02-2024 11:36 AM | |||
Anonymous
| 07-10-2024 06:33 AM | ||
Anonymous
| 09-01-2022 02:33 AM | ||
07-28-2021 09:35 AM |
User | Count |
---|---|
3 | |
2 | |
2 | |
2 | |
2 |