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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Syndicate_Admin
Administrator
Administrator

-3 Mins. I need help with a DAX measurement.

Good morning community!
I need help with one thing that I know is very simple, but I need advice from someone with more experience.
I have the following data modeling which is pretty simple. Relaciones de las tablasRelaciones de las tablasTable relationships

The calendar table has the dates, the product table has product catalog information, the tickets table has billing and pricing information.

The objective is to calculate the turnover that a series of new products have had on a specific day.

These products are the ones that are in the New January products table.
In the products table there are +5,000,000 products. in the January novelty products table there are only 50, but those 50 products are in turn in the products table.
The EAN field in the product table is not unique, there can be multiple products that have the same EAN.
The EAN field in the January New Products table if they are unique values

I make a ratio of 1 to N from Novelty Products January to Product.

The doubt comes next, when I make a table visual with the EAN fields (for New Products January) and invoicing.
Billed Year = SUM(tickets[amount])

BertinBarahona_0-1739268790912.png

The EAN and product name are from the New January products table.
Row-level billing is correct. In the table you can see the 50 novelty products and the invoiced amount that should be approximately € 1100. The problem is that the total returns 250k, and that value corresponds to the sales of the +5,000,000 products and not to the 50 I need.

At this point I don't know where else to go next, I tried to make a measure that will evaluate the turnover only of the products that have the same EAN of the table New products January:

BertinBarahona_1-1739269415978.png

But when I want to represent it in the table I get the following error:

BertinBarahona_2-1739269493784.png

If anyone can think of a solution, I would appreciate the comment.
Thank you very much in advance 😄

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

I have already found the solution, it is corrected using the following formula:

Facturado Enero25 =
SUMX ( VALUES ( 'Productos novedad enero'[EAN] ), [Facturado Año] )

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

I have already found the solution, it is corrected using the following formula:

Facturado Enero25 =
SUMX ( VALUES ( 'Productos novedad enero'[EAN] ), [Facturado Año] )

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors