Forum Discussion
Percentage Issue
- 4 years ago
Hi,
Please check the below picture and the attached pbix file.
Value country: = SUM( Data[Value] )Value percent grandtotal: = VAR _valueall = CALCULATE ( [Value country:], ALL () ) RETURN DIVIDE ( [Value country:], _valueall )Top five percent: = CALCULATE ( [Value percent grandtotal:], KEEPFILTERS ( TOPN ( 5, ADDCOLUMNS ( ALL ( Data[Country] ), "@valuepercent", [Value percent grandtotal:] ), [@valuepercent], DESC ) ) )
Hi,
Please check the below picture and the attached pbix file.
Value country: =
SUM( Data[Value] )
Value percent grandtotal: =
VAR _valueall =
CALCULATE ( [Value country:], ALL () )
RETURN
DIVIDE ( [Value country:], _valueall )
Top five percent: =
CALCULATE (
[Value percent grandtotal:],
KEEPFILTERS (
TOPN (
5,
ADDCOLUMNS (
ALL ( Data[Country] ),
"@valuepercent", [Value percent grandtotal:]
),
[@valuepercent], DESC
)
)
)
- Anonymous4 years agoNot applicable
Good Work Mr. Jihwan.
but I am not understad the line I highlited. How I can made in my measure>>- Jihwan_Kim4 years agoSuper User
Hi,
Sorry that I quite do not understand your question.
You can check my attached file, or, please share your sample pbix file's link here, and then I can try to look into it to provide a more accurate solution for your data model.
Thanks.
- Anonymous4 years agoNot applicable
Hello Sir, sorry my data is confidital.
My quesion is what are ( "@valuepercent" and [@valuepercent]) meaning??
my measure is same for you, but I dont know what I mentioned before meaning and how I write in my measure?
- tamerj14 years agoCommunity Champion
Anonymous
This is a name given to a virtual column created by ADDCOLUMNS therefore just type it as is