Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hey guys,
I feel this is a very basic question.
So I have this expression which creates a new table and which works fine:
Helper Summary Table = { ( SELECTCOLUMNS(TOPN(1, r_fs, r_fs[date_created], DESC), "country_value", [country_1_value]), SELECTCOLUMNS(TOPN(1, r_fs, r_fs[date_created], DESC), "country_name", [country_1_name]) ), ( SELECTCOLUMNS(TOPN(1, r_fs, r_fs[date_created], DESC), "country_value", [country_2_value]), SELECTCOLUMNS(TOPN(1, r_fs, r_fs[date_created], DESC), "country_name", [country_2_name]) ), }
The resulting output is a table with the right format - i.e. two columns "Value1" and "Value2" with two data rows.
How can I rename the "Value1" and "Value2" fields to a custom name?
Solved! Go to Solution.
...
Alright - I just renamed the columns via the "Fields" tab. Previously, I looked into a programmatically solution.
...
Alright - I just renamed the columns via the "Fields" tab. Previously, I looked into a programmatically solution.
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |