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

Get Fabric certified for FREE! Don't miss your chance! Learn more

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

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.