Forum Discussion

modi123p's avatar
modi123p
Microsoft Employee
1 year ago
Solved

Bug? Dynamic Selection of fields in Matrix Visual using Parameter Fields not working

Hi,

 

I m trying to create a matrix with dynamic selection of fields (to be placed as rows) by using Field parameters.

While it seems to work for the first time.. subsequent selection of the slicer fails and matrix stops to respond (cannot drill down .. and at most one column can be used at times)

 

Below picture shows 2 fields selected in the slicer.. However, the same is not reflecting in the matrix.

Attempt to expand all doesn't work.

 

Any help in this regard would be very much appreciated.

 

Power Query Code for Test table:

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Lc67EQAhCATQXohNULzcDzbh2H8bByzJW3cYGO+lQYUGSD24cW30yqVpbYLUowoLx3xZWyD16PLFdNt7g9TDbjOuqzUFqcZ2lxgfKwekB5+z7fcD", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Col1 = _t, Col2 = _t, Col3 = _t, Col4 = _t, Value = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Col1", type text}, {"Col2", type text}, {"Col3", type text}, {"Col4", type text}, {"Value", Int64.Type}})
in
#"Changed Type"

 

Parameter Field Defn

 

Parameter = {
    /* ("Col1", NAMEOF('Test'[Col1]), 0), */
    ("Col2", NAMEOF('Test'[Col2]),0),
    ("Col3", NAMEOF('Test'[Col3]), 1),
    ("Col4", NAMEOF('Test'[Col4]),2)
}
  • modi123p - Well I see you're a Microsoft employee and on the "as yet unreleased" July 2025 version of Power BI. 

    Whereas the rest of us can only access June, so yeah, I'd say you've found a bug, and not one I can replicate. 

     

    I even played with the layout settings in my version, still works as planned. 

     

    With Field Parameters STILL (3 years people) in Preview, I'm guessing they've been playing around with the way they work in tables or Matrixs. 

     

    Fortunately you'll probably be able to raise this internally a whole lot faster than any of us can. 

     

    If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!

4 Replies

  • modi123p - I cannot replicate your issue, infact it is working as expected for me. 

     

    Can you supply a file?

     

     

     

     

     

     

     

      • mark_endicott's avatar
        mark_endicott
        Super User

        modi123p - Well I see you're a Microsoft employee and on the "as yet unreleased" July 2025 version of Power BI. 

        Whereas the rest of us can only access June, so yeah, I'd say you've found a bug, and not one I can replicate. 

         

        I even played with the layout settings in my version, still works as planned. 

         

        With Field Parameters STILL (3 years people) in Preview, I'm guessing they've been playing around with the way they work in tables or Matrixs. 

         

        Fortunately you'll probably be able to raise this internally a whole lot faster than any of us can. 

         

        If I answered your question please mark my post as the solution, it helps others with the same challenge find the answer!

  • modi123p's avatar
    modi123p
    Microsoft Employee

    🙂 I m not an MS employee... but someone working on an assignment. So do not have additional outreach.

    Thank you for taking time to test.