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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Puvvula12
Frequent Visitor

Marix Visual - Sorting by desc order

I have a requirement where I am using Matrix visual, I have to show column total on left side and most recent date on left (Descending order). Is there is way to achieve this? 

Data: 

IDAccount NameCity StateSalesInvoice date
1ATX 1001/24/2023
 

2

BPA 2002/25/2023
3COK 3001/24/2023
4cOK 5002/25/2023
5BPA 7003/26/2023
6ATX 2002/25/2023

 Expected table : 

IDAccount NameCity StateTotal SalesMarFebJan
1ATX 300100200 
 

2

BPA 900200 700
3COK 800300500 

 

4 REPLIES 4
Andregewehr
Helper I
Helper I

Hello,

 

Have you tried to make a measure using filter by month? I think you can use these measures:

Sum Sales Jan = CALCULATE(Sum('Table'[Sales]), MONTH('Table'[Invoice date])=1)
Sum Sales Fev = CALCULATE(Sum('Table'[Sales]), MONTH('Table'[Invoice date])=2)
Sum Sales Mar = CALCULATE(Sum('Table'[Sales]), MONTH('Table'[Invoice date])=3)

 But I think your expected table gives wrong numbers, check it. I guess you should expect this:

DataByMonth.JPG

Thank you for your quick response.

Sorry for not mentioning it earlier, I have to show daily, weekly and Monthly report separately.  How can I show daily sales (365 days) in descending order (most recent date in left to right)?

Can you show the expected results you want?

Hi Andregewehr, 

Thanks for looking into it. 

Here is the expected results in 

Daily Sales in Q4 - Dec-Oct: 

IDAccount NameCity StateTotal Sales12/31/202212/30/202212/29/202210/1/2022
1ATX 300100200 

 

 

 

2

BPA 900200 700 
3COK 800300500  

 

Weekly Sales in Q4 (start of the week):

IDAccount NameCity StateTotal Sales26-12-202219-12-202212/12/2022
1ATX 300   
 

2

BPA 900   
3COK 800   

Monthly Sales in Q4

IDAccount NameCity StateTotal SalesDecNovOct
1ATX 300100200 
 

2

BPA 900200 700
3COK 800300500 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors