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
ashikts
Helper II
Helper II

dax formula for any ttwo months sale

Hello friends,

Im new to powerbi environment . Im learning myself with various resources .

I got an scenario to calculate the total sales only for january and march with using dax formulas . 

it is like calculate the total sales for any two months from the data.

please help me

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ashikts , one way to select from the month slicer.

or static measure like

calculate(sum(Table[values]), filter(Table, eomonth(table[Date],0) =date(2020,01,31) || eomonth(table[Date],0) =date(2020,03,31)))

View solution in original post

3 REPLIES 3
ashikts
Helper II
Helper II

worked

amitchandak
Super User
Super User

@ashikts , one way to select from the month slicer.

or static measure like

calculate(sum(Table[values]), filter(Table, eomonth(table[Date],0) =date(2020,01,31) || eomonth(table[Date],0) =date(2020,03,31)))

it didnt work

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.