Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello,
I have some problems with the sum of a measure column. This is my table:
As you can see here, Total of the Overview column is not added up correctly.
I calculate my Actuals column as follows:
Actuals = SUMX(FILTER('TabelleSales', 'TabelleSales'[Typ] = "A"), 'TabelleSales'[Sales])
The DP column like this:
DP = SUMX(FILTER('TabelleSales', 'TabelleSales'[Typ] = "DP"), 'TabelleSales'[Sales])
And the Overview column has this formula:
Overview = If([Actuals]<[DP],[DP],[Actuals])
Can someone please help me?
Solved! Go to Solution.
Hi, I am not sure how your semantic model looks like, but please try something like below.
Overview fix =
SUMX (
SUMMARIZE (
fact_table,
product[product],
calendar[Jahr],
calendar[Month name],
calendar[Month name order]
),
IF ( [Actuals] < [DP], [DP], [Actuals] )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi @Laura7 ,
Thanks for @Jihwan_Kim solution, if you want to use calculated columns, you can just change the DAX to calculated columns in the original DAX, you can check the result below:
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Laura7 ,
Thanks for @Jihwan_Kim solution, if you want to use calculated columns, you can just change the DAX to calculated columns in the original DAX, you can check the result below:
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi, I am not sure how your semantic model looks like, but please try something like below.
Overview fix =
SUMX (
SUMMARIZE (
fact_table,
product[product],
calendar[Jahr],
calendar[Month name],
calendar[Month name order]
),
IF ( [Actuals] < [DP], [DP], [Actuals] )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
10 | |
9 | |
9 |
User | Count |
---|---|
15 | |
14 | |
12 | |
11 | |
11 |