Forum Discussion

jaweher899's avatar
jaweher899
Icon for Impactful Individual rankImpactful Individual
3 years ago
Solved

dynamic columns in table

I've the following pbix file https://1drv.ms/u/s!Amd7BXzYs7AVk3D5iDMIrhfnpQNW?e=lHWRuH

when the user select in colun name %var, it'll add the measure %var n the table and only when both intial.subtotal and table1.Initial subtotal are selected.

 

 

 

 

for example here when initial.subtotal is not selected and %var is selected, so %var will not be added to the table

 

In case of I select var and % var , both measures should be displayed.

In case of I select nothing for the slicer column name,var and %var should not be dispalyed.

 

I try to find a solution since two weeks, if someone can help me, it'll be much appreciated.

13 Replies

    • jaweher899's avatar
      jaweher899
      Icon for Impactful Individual rankImpactful Individual

      TomMartens thank you for your reply. I alredy use field parameter in the table in the pbix file. Could you please show how to use another field parameter in the same table? 

  • bolfri's avatar
    bolfri
    Icon for Solution Sage rankSolution Sage

    This is what you want?

    User picksShow in the table
    %var%var
    %varInitial Subtotal
    %varTable1.Initial Subtotal
    %var & varvar
    %var & var%var
    Nothing 

     

    • jaweher899's avatar
      jaweher899
      Icon for Impactful Individual rankImpactful Individual
      • Thank you for your reply bolfri.When the user select %var, he should choose both initial subtotal and table1. Initial subtotal in order to show three measures initial subtotal and table1. Initialnsubtotal and %var.
      • If the user chooses %var and only initial subtotal, so in the table i need to show only initial subtotal

      Hope that I'm clear, thank you

      • bolfri's avatar
        bolfri
        Icon for Solution Sage rankSolution Sage

        The problem here is that you're expecting from end user that he nows the correct combinations of filters. It's easier to provide him a correct options right now.

         

        Subtotal 1 = SUM(FactSales[Initial Subtotal])
        Subtotal 2 = SUM(FactSales[table1.Initial Subtotal])
        Difference = [Subtotal 1] - [Subtotal 2]
        % Difference = DIVIDE([Difference],[Subtotal 2])
         
        Possible solution: Can you accept something like this?