Forum Discussion
Using SELECTEDVALUE but getting no grand total
ciken SELECTEDVALUE returns BLANK if more than one value is found (like what would happen in a Total row where the context is ALL/ALLSELECTED. First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e
This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8
Thanks Greg_Deckler ! My issue with HASONEVALUE is that there may be multiple accounts with the same parentid so it won't have only one value. It could be that the account with an activation has all of their orders purchased from another location, so I need those to be calculated in this row...but only once in the final. When I was using the calculated column, I created a measure like this:
Does that help clarify at all?
- Greg_Deckler2 years agoCommunity Champion
ciken I would HASONEVALUE Account and SUMMARIZE by Account. You need to essentially create an identical table in memory with SUMMARIZE as to what the visual shows.
- ciken2 years agoResolver I
Appreciate your help Greg_Deckler , As an early user do you think you can help me understand how to write that? I am sure it's a simple fix, but I'm still navigating and don't know where I'd use HASONEVALUE or SUMMARIZE!
Thank you in advance,
Corey
- Greg_Deckler2 years agoCommunity Champion
ciken Try this and see if it works. Have to guess because not sure where Account Name comes from:
Measure = SUMX( SUMMARIZE( 'Table', [Account Name], "__Measure", [Product Purchased (TEST)] ), [__Measure] )