cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ns_powerbi Regular Visitor
Regular Visitor

Measure with related and sumx

Hi all,

I have created some variables in a measure, and now I want to multiply the first variable with related value from another table)

For example:

var = test 1
 CALCULATE(
    SUMX('TableName';'Tablename1'[ColumnName1]);
    'TableName1'[ColumnName2] IN 
    { 
      12;
      13
     }
)
var = 2 test
   CALCULATE(
      SUMX(
          Name of variable name * RELATED ('TableName2'[ColumnName3]))
return 2 test

The measure doesn't work. Can someone please help me with the measure above? 
Thank you

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Measure with related and sumx

HI, @ns_powerbi 

Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Measure with related and sumx

HI, @ns_powerbi 

Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 45 members 1,207 guests
Please welcome our newest community members: