Forum Discussion
Using SELECTEDVALUE but getting no grand total
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] )
Greg_Deckler , If I use the [Account Name] field it then counts the revenue within every single account where I only want it to be the MAX for that group. But, if I change it to the [Parent Account] then I get some super big numbers in my totals column...
Your measure with Account ID
Your Measure with Parent ID
- Greg_Deckler2 years agoCommunity Champion
ciken It's difficult or impossible to know exactly what you need/exactly what the solution is without having sample data to test with. If you can provide me that, with expected output, then I can probably, almost certainly, get you there.
Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.