Forum Discussion

paulfromhouston's avatar
paulfromhouston
Frequent Visitor
1 year ago
Solved

How to dynamically exclude data from bar chart

    I use parameter to dynamically selecting the data to display on the bar chart. But the bar chart is sometimes too big to be be snapshot for ppt. So I need to exclude some data out of the ...
  • paulfromhouston's avatar
    1 year ago

    Here is the solution:

    1) make a table, "Exclusion Range", the data column can be generated by generateseries(-20000,20000,5)

    2) bring the table of Exclusion Range to a slicer, slicer setting should be "Betweeen" 

    3) Create a measure, Value Bigger Than = max('Exclusion Range[Value]')

    4) create a second measure, Value Smaller Than = min('Exclusion Range[Value]')

    5) Place these two measures into the measures used in Parameter field, for example, 

    Net MBOE = CALCULATE(SUM('OTSD Reconciliation - Working'[NetMBOE]), FILTER('OTSD Reconciliation - Working', sum('OTSD Reconciliation - Working'[NetMBOE])> [valueBigger Than] || sum('OTSD Reconciliation - Working'[NetMBOE])<[Value Smaller Than]))

    6) Reset the slicer of exclusion range, which will exclude those range from bar chart. 

     

    Thanks everybody!

    Paul