Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
1 year ago

SUM OF FILTERED VALUES

Hello everyone. I want to add a conditional with the following:

If the BDPE code is greater than 30, 30 days will be subtracted, otherwise it will be 0. I think I could have had the conditional but when I make the total sum it comes out the same as measure 2.

I want to find the correct sum for VACTRUN

I put the formulas I could create

Measure 2 = CALCULATE(SUMX(NOMINATION,NOMINATION[Imp Valor]),FILTER(NOMINATION,NOMINATION[CODE. NOW]="BDPE"))

VACTRUN = IF([Measure 2]>30,[Measure 2]-30,0)

I hope for your support please.

I copy the drive with the pbix for more visualization
https://drive.google.com/file/d/1bU2qGu0gg7bq-pUG5NX2WuyePkTvQZT2/view?usp=sharing

4 Replies

  • Hello, Syndicate_Admin ,
    I'll assume you that you want to compare It on "CONCAT" column level present in the table:

     

    New Measure = SUMX(VALUES(NOMINA[CONCAT]), [VACTRUN] )

     

     

  • v-sdhruv's avatar
    v-sdhruv
    Icon for Community Support rankCommunity Support

    Hi Syndicate_Admin ,

    Just wanted to follow up if you have tried implementing the solution above.
    If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

    Thanks

  • v-sdhruv's avatar
    v-sdhruv
    Icon for Community Support rankCommunity Support

    Hi @Syndicate_Admin ,
    Just wanted to follow up if you have tried implementing the solution above.
    If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thanks

  • v-sdhruv's avatar
    v-sdhruv
    Icon for Community Support rankCommunity Support

    Hi @Syndicate_Admin ,
    Just wanted to follow up if you have tried implementing the solution above.
    If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thanks