Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

PowerBI's Table Visual as live data source and Sales Bin Measures

I want PowerBI's Table Visual to act as a live table. This way I can use measure values as column values and filter the data in the dashboard. Right now, I cannot use visuals as filters or use them on cards because of dependencies. E.g., I have created measures to calculate the Incentives of the Salespersons but I am unable to do simple calculations like the count of salespersons who have received the incentive. I have tried creating columns but they are static. I want the values to be dynamic and updated on a real-time basis which is why I used measures.

 

Similar is the case with creating bins. Whenever I create Sales bins via measure, I cannot use them as filters. I want to filter the data based on the bins I created. Please help, how can I solve it? 😞

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    Can you provide some sample data and the output you want so that can provide more suggestion for you.

     

    Best Regards!

    Yolo Zhu

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Yolo, Thank you for replying.
      Following is what I want to achieve in the Dashboard. There are two problems:

      1) I am unable to create Cards for "Total Salespersons who received Incentive in Region 1" etc. or Count of Salespersons who received Incentive. Because Incentive is a Calculated Measure.

      2) I have created bins using a measure for Target vs Achievement of Sales but I am unable to use this as a Slicer. The data doesn't show me the number of Salespersons who achieved in the bin (100%-109.99%) sales.

       

      Now, I do not want to create a column because columns are static and not dynamic.

      Ps: The data has Regions (Column), Year (Column), Salesperson's ID, Salesperson's Name, Targets (Column), Sales(Column), Achievement% (Measure), Achievement Bin (Measure), Total Incentive(Measure).

       

      Sample Data: 

      RegionsYearSalesperson IDSalesperson NameTargetSales

      Region 120231Salesperson 1100116
      Region 120232Salesperson 2100106
      Region 120233Salesperson 3100102
      Region 120234Salesperson 410098
      Region 120235Salesperson 510088
      Region 120236Salesperson 610081
      Region 120237Salesperson 710078
      Region 120238Salesperson 810060
      Region 220239Salesperson 9100112
      Region 2202310Salesperson 1010095
      Region 2202311Salesperson 1110080
      Region 2202312Salesperson 1210078
      Region 2202313Salesperson 1310070
      Region 2202314Salesperson 1410060
      Region 2202315Salesperson 1510050
      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous 

        For the first problem, you can use the filter() function to calculate the quantity.

        e.g 

        Measure =
        CALCULATE (
            COUNTROWS ( table ),
            FILTER ( table, [Regions] = "Region1" && [Incentive] > 500 )
        )
        

        For the second querstion, the measure cannot be put into a slicer, it is a virtual data, the slicer need to put a existed column, so it's better to creata a column.

         

        Best Regards!

        Yolo Zhu

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.