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
alexBL
Regular Visitor

Is it possible to have a calculated column based on other columns in a matrix?

For exmaple this is my data:

alexBL_0-1607444485257.png

I am looking to add another colum shows the change in counts between 2019 and 2020, and also the % change. So for example france would have a value of -113 for the chage in counts and 20% change %.

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

There @alexBL

Is this what you want?

121101.jpg

I realized this with measurements. You can download the PBIX from here. Please let me know if this helps.

2019 = SUMX(FILTER(Table1,Table1[Year]=2019),Table1[Value])

2020 = SUMX(FILTER(Table1,Table1[Year]=2020),Table1[Value])

Change = [2020] - [2019]

Change % = DIVIDE([Change],[2019])


Community Support Team _ Jing Zhang
If this post helps,please consider Accepting it as the solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

There @alexBL

Is this what you want?

121101.jpg

I realized this with measurements. You can download the PBIX from here. Please let me know if this helps.

2019 = SUMX(FILTER(Table1,Table1[Year]=2019),Table1[Value])

2020 = SUMX(FILTER(Table1,Table1[Year]=2020),Table1[Value])

Change = [2020] - [2019]

Change % = DIVIDE([Change],[2019])


Community Support Team _ Jing Zhang
If this post helps,please consider Accepting it as the solution to help other members find it.

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.