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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PhuongTN
Frequent Visitor

Column Sorting Issues

Hello,

 

I am trying to sort my Month-S column by Month-N and it's not giving me any error message.

 

Capture.PNG

 

However, the other calculated columns referencing the Month-S column all turn into errors. I tried sorting Month-S by other columns as well and it still turn those columns into errors.

 

Capture.PNG

 

I'm can't seem to find a solution. Please help!

 

Thanks,

PN

3 REPLIES 3
sokg
Solution Supplier
Solution Supplier

In your measure try to use

ALLEXCEPT instead of ALL.
 
Can you share the [SHOW MM?] calculation???
PhuongTN
Frequent Visitor

Hi @sokg,

 

Here is the [SHOW MM?] measure:

 

SHOW MM? = if(day(max('SD-ACTUALS'[Date]))=15, if([StartOFLatestMYSMonth]<[StartOFCurrentMonth],"YES","NO"),"NO")

Hi @PhuongTN 

I would suggest you create a calculated column [SHOW MM?] in the table.Then create calculated column [Month-S-P] by calculating [SHOW MM?].Please do not calculate measure in columns.

https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.