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
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
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.

Top Solution Authors