Forum Discussion
Report builder measure issue
- Anonymous1 year ago
Hi, Peter_23
As you described, there are many duplications in expressions and measures. Since the total is added after loading the dataset into the report builder and then creating a new visual object, some expressions cannot be avoided.
I think this is because of two different products. At first, it was dedicated to paginated reports and served SQL Server Reporting Service. At that time, expressions were used, which was a long time ago. In recent years, it has developed into Power BI Report Server, which integrates Power BI's semantic model and other functions into it. This is also the current preview stage.
As recommended, complete the writing of measures in the semantic model as much as possible, and then present the data in Power BI Report Builder.
If you have already got the answer to the current problem in the previous reply, you can mark the corresponding reply as a solution so that other people in the community can quickly find help when they encounter similar problems.Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Peter_23
If so, I recommend that you connect Power BI Report builder to your semantic model. Create a new summary table in your semantic model with DAX expressions:
Table = SUMMARIZE('SalesData','SalesData'[City],'SalesData'[Country],'SalesData'[Orders],SalesData[Stock],"Avuerage",DIVIDE('SalesData'[Orders],'SalesData'[Stock])*100)
Connect to your semantic model in Power BI Report builder:
Here, in addition to creating a calculated table in Power BI beforehand, you can also use measures from your semantic model.
Below is the generated DAX query. If you're good at it, you can write straight into Query Designer instead of going into it.
You don't even need to resort to a semantic model. If you have SSAS, you can connect directly to your data source there, then write the corresponding DAX expression, and finally connect it in Report builder.
You can only use expressions in Power BI Report builder, not measures (except in the case of connections to semantic models or SSAS).
If you still decide to use expressions, check out this article below to learn about the syntax of Report builder.
SQL Server Reporting Services (SSRS) Tutorial
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Anonymous thanks
The SM is actually in the service so the live connection is it.
When you said:
"You can only use expressions in Power BI Report builder, not measures (except in the case of connections to semantic models or SSAS)."
I could be use or could be not? (Measures)
- Anonymous1 year agoNot applicable
Hi, Peter_23
Thank you very much for your reply. If you're connecting to a semantic model in the service in real time, you can use measure.
You need to write the relevant measure in your semantic model and then connect it.
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Peter_231 year agoAdvocate V
Thanks Anonymous Yes, It is. but I trying to add grand total, so the sum(measure) don't have a correct value because it's division function, so which aggregation should be for grand total?
thanks in advance.
- Anonymous1 year agoNot applicable
Hi, Peter_23
Based on your description, I created a tablix:
This results in the correct summing of the measures:
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.