Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
Can someone throw some light on the implementation of the below scenario.
UID | Value | Expected Result | Formula for Math |
1 | 100 | 100 | =Value(1) |
2 | 20 | 20 | =Value(2) |
3 | 120 | =Value(1)+Value(2) | |
4 | 200 | 200 | =Value(4) |
5 | 320 | =Value(3)+Value(4) | |
6 | 750 | 750 | =Value(6) |
Thanks in advance.
@Anonymous Try this measure:
Sorry to trouble you. Am I doing anything wrong here? I am unable to get the same value as you get.
Formula =
VAR value1_ = CALCULATE(SUM(TableZ[Value]),TableZ[UID]=1)
VAR value2_ = CALCULATE(SUM(TableZ[Value]),TableZ[UID]=2)
VAR value3_ = CALCULATE(SUM(TableZ[Value]),TableZ[UID]=3)
VAR value4_ = CALCULATE(SUM(TableZ[Value]),TableZ[UID]=4)
VAR value5_ = CALCULATE(SUM(TableZ[Value]),TableZ[UID]=5)
VAR value6_ = CALCULATE(SUM(TableZ[Value]),TableZ[UID]=6)
RETURN SWITCH(MAX(TableZ[UID]),
1, value1_,
2,value2_,
3, value1_+value2_,
4, value4_,
5, value3_+value4_,
6, value6_)
@Anonymous Create the measure not column.
If its a measure, I get the same values.
@Anonymous , what is the data type of UID? is it a numeric value or text ?
@Anonymous But i am not getting any issue that;s why I attached with screen shot.
@Anonymous I am attaching PBIX file for your reference.
@Tahreem24 , Thanks for the report. Understood what went wrong. I was having VALUE column in 'Dont Summarize', that should be in Summarize.
Besides, for UID=5, it should be Resultant(UID3)+UID4
Hi @Anonymous ,
Create a calculated column like this
Please accept this as a solution if your question has been answered !!
Appreciate a Kudos 😀
Thanks for your efforts.
I might have missed this. But, the summation is not always with EARLIER cell value or <= case.
It could beRow 3= Row1+Row2,
Row 9 = Row 2+Row7,
Row 10 = Row7+ Row9
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
77 | |
76 | |
57 | |
36 | |
34 |
User | Count |
---|---|
99 | |
56 | |
56 | |
46 | |
40 |