Forum Discussion

revansh's avatar
revansh
Helper IV
8 years ago
Solved

Calculated Table

Hi ,   nee dyour inputs on below calculated table scenario.   TAbleA:   Col1 col2 Col3 .. .. Col50   i want a calculated with 4 columns from above table.   Calculate table:   Col1 C...
  • v-ljerr-msft's avatar
    v-ljerr-msft
    8 years ago

    Hi revansh,

     

    If I understand you correctly, you should be able to use the formula below to create a new measure to calculate the Target based on selection of the Slicer in your scenario. :smileyhappy:

    Measure = 
    IF (
        HASONEVALUE ( TARGETS[STATE] ),
        SUM ( TARGETS[TARGET] ),
        CALCULATE (
            SUM ( TARGETS[TARGET] ),
            FILTER ( ALL ( TARGETS ), TARGETS[STATE] = "ALL" )
        )
    )
    

     

    Here is the sample pbix file for your reference. :smileyhappy:

     

    Regards