Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi community,
I am trying to get dynamic column names in my tables in a way that it always shows the Gross revenue for the selected year and the year before.
I am using a field parameter and I have tried the below code (and max, last date etc etc)
I can not share the actual data as it is sensitive, but I would like to be able to use dynamic names as I want to do this for revenue, sales quantity etc. The values do update and show selected year and last year, but the column name doesn't.
- is the OT_Year table joined or disconnected? If it is joined then you don't need the dynamic field parameter.
- if you expect the user to always select exactly one year then make the slicer single select.
The data is an simple example. In my model I've several fields, so I need the dynamic field parameter. The question is, is this possible with 'selectedvalue'?
I have now posted this several times. I'll try one more time.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
@lbendlin Even if you get the sample data in the format you expect, I strongly believe you have no idea about the solution. 🙂
So, pls stop harressing this topic and don't waste anyone's time! 🙂
I've provide sample data in my first (edited) post, also include the DAX codes I used.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |