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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Luca2020
Helper I
Helper I

Create a Table from measures, divided by month

Hi, 

I need to create a table similar to the following: 

 

ScreenHunter 469.png

 

with month as row and different measures as column or even better the measures as row. The reason is that I want to use the measures as a filter and see their values in a single chart. 

 

ScreenHunter 470.png

 

Each measure is obtained by subtracting two addittional measures that combine multiple tables: 

for example, the Tubes Margin is: 

 

TUBE REVENUES  =

VAR Tube = CALCULATE (SUM ('*PRICE'[€ TUBES]))

VAR Tubes = CALCULATE (SUM ('CRM'[Value]), 'CRM'[Type] IN {"Tubes Revenue"}, NOT ('CRM'[Value] = BLANK ()))
RETURN
CALCULATE(IF(Tube <> BLANK (), Tube, Tubes) 
 
TUBE COST = 
CALCULATE(SUM('ORDERS'[Total Cost]), '*PRODUCT'[GROUP] IN {"TUBES"}
 
TUBE MARGIN  =
TUBE REVENUES - TUBE COST
 
There are 8 similar margin formulas in total. 
I'd like to create a table with the margin for each product divided by month like FILTER('CRM', 'CRM'[Data]))
 
Thanks! 
1 ACCEPTED SOLUTION
DavisBI
Solution Specialist
Solution Specialist

@Luca2020 Hi,

 

You can create a calculation group using tabular editor in this case.

20201115221229.png

And then create calculation items for each measure and deploy the model so that you can use measures as columns or rows.

(About Calculation Group, you can refer to this article)

 

Mark this post as solution if this helps, thanks!

View solution in original post

1 REPLY 1
DavisBI
Solution Specialist
Solution Specialist

@Luca2020 Hi,

 

You can create a calculation group using tabular editor in this case.

20201115221229.png

And then create calculation items for each measure and deploy the model so that you can use measures as columns or rows.

(About Calculation Group, you can refer to this article)

 

Mark this post as solution if this helps, thanks!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.