cancel
Showing results for
Did you mean:
Helper II

## How to create measure instead of custom tables/columns

Hi all,

I have two tables like :

I have created a Custom Table for getting my calcuations :

Summary = SUMMARIZE('Fact','Fact'[MUID],'Fact'[Category],"Frequency",COUNTX('Fact',COUNT('Fact'[TBID])),"MF",COUNTX('Fact',COUNT('Fact'[TBID]))* (ALLSELECTED(tb_weights[Weight])))

Here how can I create a measure which can get the total Calculations(highlighted) for every MUID like this ?

It Should be a measure not a visual.

1 ACCEPTED SOLUTION
Microsoft

Hi @skondi ,

1.Create a new table. Then create a calculated column in the new table. There needs to be a relationship between the two tables.

``Table = ADDCOLUMNS('Fact',"Weight",RELATED(tb_weights[Weight]))``
``MF = CALCULATE(SUM('Table'[Weight]),ALLEXCEPT('Table','Table'[MUID]))``

2.Create another new table. This new table is the result.

``Summary = DISTINCT(SELECTCOLUMNS('Table',"MUID",[MUID],"MF",[MF]))``

You can check more details from here.

Best Regards,

Stephen Tao

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

2 REPLIES 2
Microsoft

Hi @skondi ,

Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.

Best Regards,
Stephen Tao

Microsoft

Hi @skondi ,

1.Create a new table. Then create a calculated column in the new table. There needs to be a relationship between the two tables.

``Table = ADDCOLUMNS('Fact',"Weight",RELATED(tb_weights[Weight]))``
``MF = CALCULATE(SUM('Table'[Weight]),ALLEXCEPT('Table','Table'[MUID]))``

2.Create another new table. This new table is the result.

``Summary = DISTINCT(SELECTCOLUMNS('Table',"MUID",[MUID],"MF",[MF]))``

You can check more details from here.

Best Regards,

Stephen Tao

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

Announcements

#### Happy New Year from Power BI

This is a must watch for a message from Power BI!