Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
Hoping somebody can help assist with the renaming of column headers when querying a PowerBI dataset in Excel.
I can live query my required PowerBI dataset in Excel but the column headers are rendered as per the absolute column name (Table[ColumnName]).
My live query looks like this:
DEFINE
VAR __DS0Core =
SUMMARIZE(
'Append1',
[Description],
[Variant Code],
[Main Supplier],
[Supplier]
)
VAR __DS0PrimaryWindowed =
TOPN(
501,
__DS0Core,
[Variant Code],
0,
[Description],
1,
[Main Supplier],
1,
[Supplier],
1
)
EVALUATE
__DS0PrimaryWindowed
ORDER BY
[Variant Code] DESC,
[Description],
[Main Supplier],
[Supplier]
Then excel returns column header names:
Is there a way to rename this column headers, in the DAX query, to "Description", "Variant Code", "Main Supplier" and "Supplier".
Thanks in advance.
I believe SELECTEDCOLUMNS function can rename your columns. Give this a try...
DEFINE
VAR __DS0Core =
SUMMARIZE(
'Append1',
[Description],
[Variant Code],
[Main Supplier],
[Supplier]
)
VAR __DS0PrimaryWindowed =
TOPN(
501,
__DS0Core,
[Variant Code],
0,
[Description],
1,
[Main Supplier],
1,
[Supplier],
1
)
EVALUATE
SELECTCOLUMNS(
__DS0PrimaryWindowed,
"Description", [Description],
"Variant Code", [Variant Code],
"Main Supplier", [Main Supplier],
"Supplier", [Supplier]
)
ORDER BY
[Variant Code] DESC,
[Description],
[Main Supplier],
[Supplier]
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |