Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi
I have a table in SQL that get's refreshed at the start of every month which has the following columns
CustomerID - R6 - R5 - R4 - R3 - R2 - R1
R1-6 represent their spend classification in text in regards to the current Month - For example today's date is 4th of May, 2020 then R1 represent Classifications in April and R2 for March etc etc.
Some example data
10000000 -- High - Low - High - Low - High - Low
10000001 -- Low - Low - Low -Low -Low - High
Once I Imported this table into powerBI I can display such information in a table (Visual)
-- However I want the column names shown in the table to be have 202004, 202003 displayed instead of R1 - R6.
1.) If I change the underlying sql script so that the column names are changed dynamically at the start of every month then it won't refresh because the same column names cannot be found by next month in the displayed table.
2.) However if I leave it at R6-1 then I have to go to the displayed tables and changed the column names one by one every month.
Is there a more intelligent way of doing it?
Thanks
Rigel
Solved! Go to Solution.
@Anonymous , refer, if these can value
https://community.powerbi.com/t5/Power-Query/Dynamic-Column-Names/m-p/862358
https://www.youtube.com/watch?v=fSHcLxA9rY4
https://www.youtube.com/watch?v=yEemVBiaTuk
@Anonymous , refer, if these can value
https://community.powerbi.com/t5/Power-Query/Dynamic-Column-Names/m-p/862358
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 45 | |
| 34 | |
| 27 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 56 | |
| 38 | |
| 21 | |
| 21 |