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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
zan0n
Frequent Visitor

Sort Sold and Not Sold

Hello,

Im trying to sort what was sold by a salesperson and what was not. The intent is to motivate them to sell what they havent sold, so they see what they havent sold together with how much they couldve made.

zan0n_0-1716209412848.png

Relationships as follow:
dSupervisores[cod_supervisor] -> dVendedores[cod_vendedor] -> fEmprestimos[cod_vendedor]
dEsmprestimos_tabelas_tipo[tabtipcodigo] -> dEmprestimos_tabelas[tabcodigo] -> fEmprestimos[tabcodigo]

So it would be what dEmprestimos_tabelas_tipos[convenio_pai] dSupervisores[Supervisor Agrupado] sold and what it didnt, acompanied with the values from fEmprestimos that i already have. 
Expected result is:
Sold

convenio_paiValue
B31
C34
D44


Not Sold

convenio_paiValue
X5
Y32
Z115


Please let me know if the info and question are confusing. 
Apreciate the help!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@zan0n , I think you need a solution like this

Power BI Items/Categories not sold to the customers: https://youtu.be/AbuKvAnicwo

 

You need sum up not sold

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@zan0n , I think you need a solution like this

Power BI Items/Categories not sold to the customers: https://youtu.be/AbuKvAnicwo

 

You need sum up not sold

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for sharing the video! Helped me to understand the problem better.
I am still having trouble, i feel like youve put the solution right in front of my eyes but i still cant figure it out.
I cannot add the values of the categories they didnt sell. I have a measure SUM(fEmprestimos[valor_liquido]) that i would like to have next to the categories they didnt sell, showing what he coulve sold.
Your reply mentions i need to sum up not sold, but i, lost on where to apply that. 

Im trying to figure it out. Apreciate your help so far, and whatever else you can help me with!

zan0n
Frequent Visitor

Solved using Amit's video and using a measure CALCULATE(VALUES, REMOVEFILTER(dSupervisores), REMOVEFILTER(dVendedores)). Thank you Amit!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.