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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
tester_001
New Member

Use different groups in Measures

Hello!

 

I have a table like this:

Table 1Table 1

 

I need to calculate:

- Measure1 = select sum(col_1) from Table group by dt, col_1

- Measure2 = select sum(col_2) from Table group by dt, col_1, col_2

Снимок.PNG

Снимок.PNG

 

And as a result i need to create a matrix visual where Rows will be defined by col_2 values, Columns will be defined by dt and Values will be calculated as Measure2 / Measure1.

Please, help me 🙂

1 REPLY 1
amitchandak
Super User
Super User

If you need to create a matrix visual, then drag the Dt and  column on row and again the col on value and use aggregation sum

a simple measure like this should do sum(table[col1])

 

If need new Tables

summarize(Table, Table[dt],table[col1], "measure1",sum(table[col1]))
summarize(Table, Table[dt],table[col1], table2[col_2], "measure1",sum(table[col2]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.