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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors