Forum Discussion

Rince91's avatar
Rince91
Icon for Helper I rankHelper I
4 years ago

Dynamically Display Columns With Totals Greater than X

Hi All,

 

I have a dataset in which each column is a service and each row is the monthly spend on that service.

 

There are multiple columns.

 

I would like to only display columns who's summed value across multiple rows exceeds a specified amount.

 

Im not sure how to go about this. I thought about a custom column with a true/false statement but would need one for each column which isnt feasable.

 

Edit: Below is a sample of my dataset. What i need to do is create a stacked bar chart for each "Service", for 3 months, where the summed column value is greater than $100.

 

ServiceDateBackup($)CloudFront($)CloudTrail($)CloudWatch Events($)CloudWatch($)Config($)DynamoDB($)
Webstacks########3.8074530.03604801.23E-0531.7436344.66111.85437
Webstacks########2.6038890.03441708.22E-0629.4940350.82311.50157
Webstacks########1.8698050.02586909.25E-0630.1979943.25510.58426
Webstacks########54.07590.00357806.17E-0634.6074744.94611.85438
Webstacks########30.053270.00926304.11E-0632.634850.48411.85437
Webstacks########23.141190.00570307.2E-0633.1942940.97210.58426
Webstacks########25.7263213.807050 144.259120.97911.51922
Webstacks########27.0726213.523580 140.845237.33911.50157
Webstacks########28.699859.0806290 125.116121.76610.1609
Legacy########473.48932.61874818 186.613455.7058.891563
Legacy########473.87293.475225181.03E-06191.117647.4528.891565
Legacy########456.30253.3547416 184.695335.7397.938909
KLG########3.9735130.0483371963.46E-0527.1338431.0711.51522
KLG########3.3834870.0681081770.00020728.7617316.02411.87038
KLG########4.5435830.0825732050.00015836.45886244.50326.54885
KLG########2.6656440.0027550 17.4755287.85911.85571
KLG########2.6246130.00072308.24E-0618.5667386.79911.856
KLG########2.5207080.00142801.85E-0521.881784.00530.76302
KLG########3.3143120.24345501.03E-0650.76672122.39511.50283
KLG########4.0603020.16748606.18E-0655.46416117.68311.8558
KLG########3.9147250.00111101.23E-0584.9595798.25730.19538

5 Replies

  • Rince91 , If a column is going to be measure you can make it blank like

     

    if (sumx(allselected(Table), Table[Columm]) >100, sum(Table[Column]), blank())

     

    If need you can create a calculation group on these measures to get better control

     

    Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

    • Rince91's avatar
      Rince91
      Icon for Helper I rankHelper I

      Thanks for this, i can see how this would be really useful and i've subscribed!

       

      However, i dont think it will do what im looking for. I have posted an edit with a sample data set and further explanation of what i am trying to do.

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Icon for Community Support rankCommunity Support

    Hi, Rince91 ;

    Sorry I am still a little unclear about your question, first of all there are two columns in the dataset where the numbers are not very clear.


    Secondly, you are asking for the sum of Backup($) + CloudFront($) + CloudTrail($) + CloudWatch Events($) + CloudWatch($) + Config($) + DynamoDB($) for each service and >100 right?


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Rince91's avatar
      Rince91
      Icon for Helper I rankHelper I

      Hey, Thanks for replying.

       

      Unfortunately not quite right. Hopefully the below explanation clarifies things.

       

      This is the graph i need to present:

       

      However, i only want to show segments of the bar that are over a certain value.

      Each item of the legend is a column in the data set.

      I sum the value for each month for each column.

      If that sum value is greater than $150, plot the sum value on the stacked graph against the relevant month.

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Icon for Community Support rankCommunity Support

    Hi, Rince91 ;

    Is your problem solved? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.