March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi! I think I'm missing something obvious but I have tried so many different measures and none of them have worked and honestly getting no where each time I look at it. I want to see the Total display under the 'Total' row and I can't get it right. Could someone help?
Solved! Go to Solution.
Workaround could be:
DCOH Mean =
VAR IsTotal = NOT (HASONEVALUE('Table B'[Locid]))
VAR SingleVal =
CALCULATE (
GEOMEAN ( 'Table'[ DCOH ] ),
FILTER ( 'Table', 'Table'[Locid] = SELECTEDVALUE ( 'Table B'[Locid] ) )
)
VAR TotalVal =
GEOMEAN('Table'[DCOH])
RETURN IF(IsTotal, TotalVal, SingleVal)
BUT I don't understand why you do it this way in the first place. Just make a relationship between Table 2[Locid] (1) to Table[Locid] (m) (1:m) and alter your measure to:
DCOH Mean =
GEOMEAN ( 'Table'[ DCOH ] )
you are using selectedvalue in your measure maybe your measure is returning the values as text and if there is blank value in your data then that blank values is being shown on the total as the total ot text field is always text .
no.
have you enables total option in format pane in your visual settings?
I wish this was the solution!
obviously, since there's the text "Total".
If you could show the measure it would help a lot 😉
The problem could be SELECTEDVALUE.
In the Total Row, SELECTEDVALUE returns BLANK() because there are more then "one" values selected.
What's "Table B"? Can you show the relationships?
Thanks for your help so far, that makes sense. 'Table B' contains my Locid selections
Workaround could be:
DCOH Mean =
VAR IsTotal = NOT (HASONEVALUE('Table B'[Locid]))
VAR SingleVal =
CALCULATE (
GEOMEAN ( 'Table'[ DCOH ] ),
FILTER ( 'Table', 'Table'[Locid] = SELECTEDVALUE ( 'Table B'[Locid] ) )
)
VAR TotalVal =
GEOMEAN('Table'[DCOH])
RETURN IF(IsTotal, TotalVal, SingleVal)
BUT I don't understand why you do it this way in the first place. Just make a relationship between Table 2[Locid] (1) to Table[Locid] (m) (1:m) and alter your measure to:
DCOH Mean =
GEOMEAN ( 'Table'[ DCOH ] )
Wow. I was over complicating things for myself, huh? Thank you so much, I went with the second solution. I really appreciate your help with this!
you're very welcome. i've been there myself, overcomplicating stuff 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |