Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello all,
i have the below measure
Total per column per year: = sumx(ADDCOLUMNS(SUMMARIZE('Family situation PowerBI','Family situation PowerBI'[Type],'Family situation PowerBI'[Date].[Year]),"@result",[ValueLatestDate(all Years)]),[@result])
which gives me the below results
and i would like to know if i can have the columns Balance and Invested different with Invested to be first and second to be Balance.
than you
Solved! Go to Solution.
Hi @CJKPowerBI ,
Please try:
Then choose sort by column:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @CJKPowerBI ,
Please try:
Then choose sort by column:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hello @v-jianboli-msft
i figured out the issue, the issue was that some of my text was:
- Invested
- invested (with not capital I)
and that was giving the error...
that works great,
thank you
Hi @CJKPowerBI ,
Based on your description, I have created a simple sample:
Please try:
Create a sort column:
here is the M code:
= Table.AddColumn(#"Removed Columns", "Sort Column", each if [1] = "Balance" then 2 else 1)
Then sort by column:
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @v-jianboli-msft
i tried to follow your instructions and even look at the .pbix file but unsuccesfully couldnt make it work.
below is part of my data
and if i understood i need to make a column with the formula which you gave me that all no?
can you look at your formula based on my columns above?
thank you
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.