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
subburaj
Helper I
Helper I

How to create single delta measure for all measures

Hi Friends - Require your help please. Please find the attached screenshot for your reference. This is a matrix table, Fiscal Year (FY18, FY19) are in columns and measures are in rows. I need to create a single delta measure (FY19 minus FY18/FY18) for all measures. The new delta measure would in column, next to FY19. Kindly help.

Question.png

 

1 ACCEPTED SOLUTION

For point 4, you just have to hover the mouse on the column header, click/drag and reduce the column size to minimum.

Point 5 is just adjusting about adjusting your rule. I see from screenshot, you only gave >=0 check, but in the table it is negative (-8). Can you try adding a rule for greater than or equal to -100 & less than 0 and check?

View solution in original post

6 REPLIES 6
AkhilAshok
Solution Sage
Solution Sage

You could enable the Column Sub-Total and adjust the DAX to potentially achieve this:

 

 

Measure 1 w Diff =
VAR fy18 =
    CALCULATE ( [Measure 1], [FISCAL YEAR] = "FY18" )
VAR fy19 =
    CALCULATE ( [Measure 1], [FISCAL YEAR] = "FY19" )
RETURN
    IF ( ISFILTERED ( [FISCAL YEAR] ), [Measure 1], ( fy19 - fy18 ) / fy18 )

 

This works..thanks... i want to apply conditional formatting to column sub total..like font color to show red when it is positive and green when it is in negative or up/down basedd on column sub total. Kindly help 

Unfortunately, you cannot apply conditional formatting on Grand Totals. A workaround would be the following:

 

1. Create a new Calculated Column in the table: Delta = "Delta"

2. Create a new Matrix table, with Delta as the Column, and [Measure 1 w Diff] as Values.

3. Disable sub-totals, show value on Rows, and disable word wrap for Row Header

4. Reduce the size of Row Header to mininum, so that the measure names are not visible.

5. Enable the conditional formatting on this table based on your requirement

6. Arrange it close to the previous matrix table, so users get a visual feel that it is a single table Smiley Wink

 

Hope this helps.

Awesome..you are legend..one last question... I am unable to achive your point 4 (Reduce the size of Row Header to mininum, so that the measure names are not visible) and 5 (Enable the conditional formatting on this table based on your requirement). I have tried but could not. Also would be great if i could get your contact details.

 

For point 4, you just have to hover the mouse on the column header, click/drag and reduce the column size to minimum.

Point 5 is just adjusting about adjusting your rule. I see from screenshot, you only gave >=0 check, but in the table it is negative (-8). Can you try adding a rule for greater than or equal to -100 & less than 0 and check?

Ashish_Mathur
Super User
Super User

Hi,

 

I doubt if that is possible.  There will have to be a seperate growth measure for each measure you have computed.  However, it is possible that you have had to write so many measures because your base data is not well structured.  One can ascertain that only after seeing your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.