Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Team, I am trying to summarize on multiple columns but always it's throwing same error. I didn't understand the cause.
Solved! Go to Solution.
HI @Anonymous
For your formula, this returns a table not a value
https://docs.microsoft.com/en-us/dax/topn-function-dax
Returns the top N rows of the specified table.
then for your measure , it should like this:
Ranking 1=
Hi Please find the sample pbix file and Expected output. Here i want to show Top 50 providers on rank wise while sorting the paid amount.
Note: Here my orginal source is tabular model so i can't create index column so we need to apply dax to show ranks top 50 records , i have already filtered out Top 50 records just i want show one column for Ranks.
What are you trying to achieve?
You're using a VAR variable to define a table as a variable, but you're missing a
RETURN
dax expression here
You need to add the RETURN value, based on what you want the measure to actually do.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
By mistake but its not variable. but still it's showing same issue.
Assuming this is just a variable in a longer expression, you are not using SUMMARIZECOLUMNS correctly. Please see this article - https://www.sqlbi.com/articles/introducing-summarizecolumns/
You are naming your new columns, but you seem to be referencing columns after those (instead of measures). For example, is 'Fact Claim'[Paid Amount] a column or a measure on that table. If a measure, consensus is not to list the table with measures (so people that review your code will know it). If a column, you need to have an aggregation, potentially wrapped in a CALCULATE( ) to get context transition, or just reference an existing measure.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |