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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PieroCampilii
Regular Visitor

Sales Range and Ring Chart Error?

Hi there!

English is not my first language but I'll do my best.

I'm trying to make a ring chart dividing sales in 5 different ranges. In other words, dividing customer tickets by total amount in 5 categories. I manage the DAX formula (at least I think) but chart is not looking good.

Main problem could be that many tickets have 2 or more items on it and Filter Function makes it difficult. These sales are the sum of 2, 3, 4 differente items (SKU) so my "range" is not being counted as one final amount but 2, 3, 4 different ranges because each item has a different value.

Will add screenshots and hope they're self explanatory 

PieroCampilii_0-1686325805729.png

Pr_DOC#_DIF_SKU#.png

Order Number in Sales Table

 

Pr_SalesRange.png

Sales Range Table

Pr_DAX_SalesRange.png

Ventas en Moneda = Total Sales Amount
'Ventas' = Sales Table
(Cantidad) * (Precio Neto Unitario) = Quantity times (*) Net Price per unit

'Rangos' = Ranges Table
Desde = From

Hasta = To

If you see, is working on table view but not as a Ring Chart

Pr_DAX_SalesRange_RingChart_Error.png


Would like to have it like this one

Pr_good.png



Thanks in advance for any help.

1 ACCEPTED SOLUTION
PieroCampilii
Regular Visitor

I did it. 
Solution was to creat a new table with Order Only and filter that one.

PieroCampilii_0-1686753313785.png

I'm new to all this so congrats to myself haha!

Feels like progresing.



View solution in original post

4 REPLIES 4
PieroCampilii
Regular Visitor

I did it. 
Solution was to creat a new table with Order Only and filter that one.

PieroCampilii_0-1686753313785.png

I'm new to all this so congrats to myself haha!

Feels like progresing.



tamerj1
Super User
Super User

Hi @PieroCampilii 

what to you get when you remove document number from details?

tamerj1

I tryed this other DAX scenario where [tickets] is my distinct of sales 

CALCULATE([Ventas en Moneda],                      -- a sumx of qty * net price

            ALL(VENTAS[Numero Documento]),       -- Order Number in Sales table
            DISTINCT(VENTAS[Numero Documento])    -- Distinct 
)

...but it didn´t work. Is showing the range of product prices.

Pr_Distinct.png

Hi tamerj1!

Nothing 

Pr_justThis.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.