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

Monthwise total using DAX

Hi,

 

Below is my request to figure out the MonthwiseTotal column using DAX measure. I have tried using TotalMTD function but it is working. Can any one pls help on this.

 

Murali777_0-1653632979063.png

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

The table

JamesFr06_0-1653634181098.png

the measure ==>

JamesFr06_1-1653634233922.png

 

View solution in original post

Anonymous
Not applicable

hi @Murali777 

 

You can use this measure

MonthwiseTotal = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[End Of Month]))
 
esha_shah2002_0-1653634690542.png

If this post helps, accept it as a solution.

View solution in original post

10 REPLIES 10
Anonymous
Not applicable

hi @Murali777 

 

You can use this measure

MonthwiseTotal = CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[End Of Month]))
 
esha_shah2002_0-1653634690542.png

If this post helps, accept it as a solution.

Hi Esha,

 

Is any input on the below scenario please?

 

Below is the code for the output Esha.. We need to filter based on the User right. it works fine. 

 

Thank you for your help as well.

 

MonthlyTotal1 = CALCULATE(SUM(EmployeeTable[Value]),ALLSELECTED(EmployeeTable[User]))
Anonymous
Not applicable

hi @Murali777 

No , I am not able to get the required output

 

Hi Esha,

Please see this example below, i have removed the user C an D from the second table but still it is summing all the users value. I need to sum only the selected user values. Please help me with this example.

 

Murali777_0-1653636012493.png

 

Anonymous
Not applicable

The table

JamesFr06_0-1653634181098.png

the measure ==>

JamesFr06_1-1653634233922.png

 

Hi James,

 

It is calculating the total for all the users. if i added or removed some of the user, that time also it is showing the same total sum value. I need total for only selected users.

TomMartens
Super User
Super User

Hey @Murali777 

 

this article Time patterns – DAX Patterns contains almost everything you need to know to create time/date related calculations.

It's necessary that you create a dedicated calendar table and then create a measure that cumulates the values from all the data less and equal to the selected date.

 

Hopefully, this helps to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

HI

 

Calculate(sum(value),allexcept(Table[EndofMonth]))

Hi James,

 

I have tried, but it is not working. if you dont mind pls share the PBIX file.

Thanks.

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.

Top Solution Authors