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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vijaykumarj19
Employee
Employee

Replace value of a existing measure based on other column

AttributeM1M2M3M4M5M6
A112254435
A222345442
A33354254
A436352

5

Above is a matrix visual Attribute is row

M1,M2....... are values and they are measures.

M1 = calculate(count(id),filter......)

Required

 

AttributeM1M2M3M4M5M6
A1122NANANA5
A222345442
A33354254
A4363525

 

3 REPLIES 3
amitchandak
Super User
Super User

@vijaykumarj19 , what is logic.

 

example

new M3 =If(max(Table[Attribute]) = "A1" ,"NA",[M3] & "" ) // you can return only one type of data type

 

new M3 =If(max(Table[Attribute]) = "A1" ,blank() ,[M3]) // return blank

Then i can cant return two datatypes 

 

M3 logic = calculate(count(id),filter(tb1,tb1[col] = "xyz"))

Hi @vijaykumarj19 ,

 

What you described doesn't make me understand the problem. Can you share the sample pbix and the results you expect?

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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