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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Chandu_sandy
Frequent Visitor

current month vs previous month

When i try to add 2 different measures like below ( sales mtd previous and current) the table is showind 2 columns for 2 different months.
 
Sales MTD Previous =
CALCULATE(
    sum('total'[sales]),
    DATEADD('Date'[Date], -1, MONTH)
)
 
Sales MTD current = CALCULATE(
    sum('total'[sales]),
    DATESMTD('Date'[Date])
)

Chandu_sandy_0-1705564064039.png

 

is there any way to get only one column per month.
thanks.

1 REPLY 1
v-tianyich-msft
Community Support
Community Support

Hi @Chandu_sandy ,

 

It seems impossible, because every time you create a measure you are generating one column of data, so when you apply two measures you are generating two columns of data.

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.