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
kdixon5490
Helper III
Helper III

Need to add Minimum Values

Currently I have a table that looks something like this

DateLocationAttendanceRevenue
2019-01-01LOC12758.00
2019-01-01LOC21522.00
2019-01-02LOC11442
2019-01-02LOC22937

 

I need to be able to take the minimum value by Date and add it up so I would be like this

15 + 14 = 29

22 + 37 = 59

 

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @kdixon5490  ,

Here are the steps you can follow:

1. Create calculated column.

Attendance_total =
var _sum=SUMMARIZE('Table','Table'[Date],"1",MIN('Table'[Attendance]),"2",MIN('Table'[Revenue]))
return
SUMX(_sum,[1])
Revenue_total =
var _sum=SUMMARIZE('Table','Table'[Date],"1",MIN('Table'[Attendance]),"2",MIN('Table'[Revenue]))
return
SUMX(_sum,[2])

2. Result:

v-yangliu-msft_0-1621315513539.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @kdixon5490  ,

Here are the steps you can follow:

1. Create calculated column.

Attendance_total =
var _sum=SUMMARIZE('Table','Table'[Date],"1",MIN('Table'[Attendance]),"2",MIN('Table'[Revenue]))
return
SUMX(_sum,[1])
Revenue_total =
var _sum=SUMMARIZE('Table','Table'[Date],"1",MIN('Table'[Attendance]),"2",MIN('Table'[Revenue]))
return
SUMX(_sum,[2])

2. Result:

v-yangliu-msft_0-1621315513539.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi, @kdixon5490 

Please check the below picture and the sample pbix file's link down below.

All measures are in the sample pbix file.

 

Picture1.png

 

 

https://www.dropbox.com/s/x8rfcewd6lrkldo/kdixon.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Hi @kdixon5490 

 

Here is the formula to find the min value for each date.

Min Attendance = CALCULATE(MIN(Min_value_in_grp[Attendance]),ALLEXCEPT(Min_value_in_grp,Min_value_in_grp[Date]))
 
Min Revenue = CALCULATE(MIN(Min_value_in_grp[Revenue]),ALLEXCEPT(Min_value_in_grp,Min_value_in_grp[Date]))

 

Min Value in Group.PNG

Thanks
Raj

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.