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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.