Forum Discussion
Show value filtered by a column
- 4 years ago
Anonymous you cannot do that, if you are trying to do in a one measure then you have to change it:
testmeasure = var y =CALCULATE(SUM('Table'[Value]),'Table'[Group]="Region1") return SUM('Table'[Value])*DIVIDE(y,y))✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
Anonymous try these measures:
Sum Base = SUM ( Table[Value] )
Sum Region 1 = CALCULATE ( [Sum Base], Table[Region] = "Region 1" )
Sum when Region 1 is not blank =
VAR __region1 = [Region 1]
RETURN
[Sum Base] * DIVIDE ( __region1, __region1 )
Use sum when region 1 is not blank measure in your visual.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
- Anonymous4 years agoNot applicable
I try it :
testmeasure =var x= SUM('Table'[Value])var y =CALCULATE(x,'Table'[Group]="Region1")return IF(y=BLANK(),BLANK(),x*DIVIDE(y,y))What do you mean by [Region 1] and Table[Region ] ?, It's not working i have only 3 column Obejct, Group and Value