Forum Discussion
Help, Dax Measure not returning Aggregate
Hello,
I have a table that calculates an indicator (day), the number of days between the start date and the end date, and the total (indicator * nb day).
The online total is good but when I want an aggregated view per month, the sum is not good.
Here is an example, for 1/10/2023, I have 2 lines of 18,055.56 and 5,000, a total of 23,055.56.
But when I remove the Trade Id, I have 45 139.
An idea pls?
2 Replies
- Greg_DecklerCommunity Champion
majid_75 Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2. - AnonymousNot applicable
Hi majid_75 ,
Based on the testing, creating the new column to calculate the total.
TotalPerRow = [Somme day Boost] * [Day by Month]Then, creating the new measure to calculate the values.
AggregatedTotal = SUMX( 'Table', 'Table'[TotalPerRow] )The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.