Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
EduardoCastulo
New Member

Dynamic Axis and legend without Field Parameters

Hi community!

I am looking for a way to create or simulate the Field Parameters feature in my report. I've been searching all week and haven't found a solution. I am working with Power BI Report Server, and this feature is disabled by admin.

I have a single table named "Total Sales" which includes fields such as USD, Product Name, and Country of Origin, among others. I want to use this table in a "Stacked Bar Chart," with the x-axis showing the sum of USD and the y-axis showing either Product Name or Country of Origin.

The main issue is with the y-axis. I found that Field Parameters would perfectly achieve my objective, but with this limitation, I wonder if there is another workaround to achieve this.

Thanks!
Eduardo R.

1 REPLY 1
qqqqqwwwweeerrr
Super User
Super User

Hi @EduardoCastulo 

 

Here is my approach, though i would insit that you share sample data that woule have made soultion easy. 

 

Here are steps that i have taken.

 

Here is my sample data (This sould will only work when you have primary key in the data else this will not work).

 

qqqqqwwwweeerrr_0-1721814433296.png

i have taken addional column deparment to test my solution.

 

Now you need to create a summry table using this dax function. 

SummaryTable =
VAR ProductsTable =
    SELECTCOLUMNS(
        'table',
        "id", 'table'[Unique ID],
        "column", "Product",
        "column value", 'table'[Product Name],
        "sales", 'table'[Sales]
    )
VAR CountriesTable =
    SELECTCOLUMNS(
        'table',
        "id", 'table'[Unique ID],
        "column", "Country",
        "column value", 'table'[Country of origin],
        "sales", 'table'[Sales]
    )
RETURN
    UNION(ProductsTable, CountriesTable)
 
and than make a connect using primary key i.e. ID once it done create a slicer for both the column and it should be single select.
qqqqqwwwweeerrr_1-1721814531991.pngqqqqqwwwweeerrr_2-1721814577427.pngqqqqqwwwweeerrr_3-1721814592814.png

If you see it works only contrainst us you need primary key, and you have only single select slicer else value would be incorrect. 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem

Regards

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors