Forum Discussion

cham's avatar
cham
Post Patron
7 years ago
Solved

DAX formula

Hi dedelman_clng 

 

idDriver 1D
101
91
81
101
102
102
103
93
93
83
83
83
83
81
83
83
81
74
74
64
64
63
63
63

 

here is my data set I want to get the sum of the iD which is greater than 8 and another set which is less than 7

How I can create a DAX formula to get this?

 

I also have data set which creted by tablue and they use below formula,

Clients = SUM(INT([ID] > 8))

 

so in power bi I creted this formula,

Clinets = CALCULATE(SUM(Sheet1[ID]), FILTER(Sheet1[ID]] > 8))

 

Is this formula is correct is this giving the same data as the tableau formula?

 

Lokking formward favourable response

Thank you so much

  • Hi cham 

    Please see the below Dax expression, it will sum all ID numbers that are  grater than 8 .

    Clients = 
    CALCULATE(
        SUM( Sheet1[ID] ), Sheet1[ID] > 8
    )
    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    Mariusz Repczynski



2 Replies

  • Mariusz's avatar
    Mariusz
    Community Champion

    Hi cham 

    Please see the below Dax expression, it will sum all ID numbers that are  grater than 8 .

    Clients = 
    CALCULATE(
        SUM( Sheet1[ID] ), Sheet1[ID] > 8
    )
    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    Mariusz Repczynski