Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cham
Post Patron
Post Patron

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

1 ACCEPTED SOLUTION
Mariusz
Community Champion
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



View solution in original post

2 REPLIES 2
Mariusz
Community Champion
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



Thank you so much

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.