cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alejandro-Glez
Helper II
Helper II

Total revenue with RELATED doesn't work

Good afternoon

I am trying to calculate the total revenue using DAX, so I try to multplicate with the SUMX the amount of sales of the Fact Ventass by the unit price of the DimProduct, with RELATED. However, it does not work for me even though the model is related to the ProductKey.

Thank you and greetings.

https://gyazo.com/a9584557a50395ef4e8d34f16260a175

https://gyazo.com/659db086264438b055bacc109cc4a8c8

1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@Alejandro-Glez , Move Related inside the sumx and try

example

Sumx(Table, Table[col]* related(dim[Value]))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@Alejandro-Glez , Move Related inside the sumx and try

example

Sumx(Table, Table[col]* related(dim[Value]))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

It worked!

 

Thanks.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.