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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Sachy123
Helper V
Helper V

Dynamic Value of a measure

So if you can see the screenshot below, I  am able to pull the value of measure2 from a table as 

Measure 2 = 

CALCULATE(VALUES(TableTwo[Value2]),TableTwo[Color]="M2")
 
So M2 has got the actual formula of the measure!
 
Instead of throwing a text, I need it to display value "1"
 
Do you know how can I do it?
 

Screenshot_1.png

1 ACCEPTED SOLUTION

Hi @Sachy123 

 

It's impossible.You may not get the measure's value from a table's column.I would suggest you copy the formula to create the measure M2.Then create an IF condition to get the value.Here is the article about measure and column.

Measure 5 = IF(MAX(Table4[color])="M2",[M2],MAX(Table4[value2]))

1.png

Regards,

Cherie

 

Community Support Team _ Cherie Chen
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

4 REPLIES 4
v-cherch-msft
Employee
Employee

Hi @Sachy123 

 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. More people will benefit from here. If not, please share more details for us so that we could help further on it.

 

Regards,

Cherie

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

Hi Charlie.
On my firstpost.. i gave an example.. where I am trying to read formulas stored in a table..
So that all the measures can be in one table and i can refer to them. .. is it actually possible in power Bi?

Hi @Sachy123 

 

It's impossible.You may not get the measure's value from a table's column.I would suggest you copy the formula to create the measure M2.Then create an IF condition to get the value.Here is the article about measure and column.

Measure 5 = IF(MAX(Table4[color])="M2",[M2],MAX(Table4[value2]))

1.png

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-cherch-msft
Employee
Employee

Hi @Sachy123

 

Do you want to count the value2 for M2?If so, you may use below measure.If it is not your case,please explain more about what you want.

Measure = CALCULATE(COUNT(Table1[value2]),Table1[color]="M2")

Regards,

Cherie

 

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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