The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
I have a situation in my report where a single deal is having 2 stakeholders but when I'm calculating total revenue it is adding both the rows whereas it should add only distinct deal.
Like in the below screenshot I want to show the sum as $341.10 but it is doublng since I have 2 stakeholders on the same deal.
How can this be resolved?
I want to calculated Revenue with distinct Deal ID like below
For reference ( This is showing up wrong as its doubling the revenue) :
Kindly help in resolving this.
Regards,
Himanshu
Solved! Go to Solution.
Hi, @Anonymous
Since this result is being calculated multiple times, you can try to divide the result by each count of id (2).
C_Gross Revenue =
VAR count_eachID =
CALCULATE (
COUNTROWS ( View_DealClosing ),
ALLEXCEPT ( View_DealClosing, View_DealClosing[ID] )
)
RETURN
View_DealClosing[Estrevenue] / count_eachID
Youcan also try measure to change total value in table visual as below:
Gross Revenue =
IF (
HASONEVALUE ( View_DealClosing[ID] ),
SUM ( View_DealClosing[Estrevenue] ),
SUM ( View_DealClosing[Estrevenue] ) / 2
)
Best Regards,
Community Support Team _ Eason
@Anonymous , Try like
Gross Revenue = sumx(values(View_DealClosing[ID]), CALCULATE(SUM(View_DealClosing[Estrevenue])))
but what is the benefit if both are sum
may be
Gross Revenue = sumx(values(View_DealClosing[ID]), CALCULATE(max(View_DealClosing[Estrevenue])))
Its giving me an error when I'm trying to create a 2nd calculated column using the above calculation.
Hi, @Anonymous
Since this result is being calculated multiple times, you can try to divide the result by each count of id (2).
C_Gross Revenue =
VAR count_eachID =
CALCULATE (
COUNTROWS ( View_DealClosing ),
ALLEXCEPT ( View_DealClosing, View_DealClosing[ID] )
)
RETURN
View_DealClosing[Estrevenue] / count_eachID
Youcan also try measure to change total value in table visual as below:
Gross Revenue =
IF (
HASONEVALUE ( View_DealClosing[ID] ),
SUM ( View_DealClosing[Estrevenue] ),
SUM ( View_DealClosing[Estrevenue] ) / 2
)
Best Regards,
Community Support Team _ Eason
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
95 | |
93 | |
85 | |
68 | |
65 |
User | Count |
---|---|
241 | |
124 | |
121 | |
81 | |
79 |