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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
jeongkim
Post Partisan
Post Partisan

Sub total measure for difference but cannot manage when there's only 1 value available

Hi, 

 

jeongkim_1-1699416860820.png

jeongkim_2-1699416877807.png

 

 

I created this measure to compare particular period vs period to see the gap. 

it works okay when they both periods have the same row items and values but when only one period has the row, then it cannot work smartly. 

 

e.g. 2Q P7 QTY is 480  but P8 is null(cuz P8 doesn't have that item at all), then it should have been -480 under Diff. total. 

so any idea to change my measure pls? 

 

and another one is Row total on top shoudn't have icon for P7/P8 value, only need the icons for column total(for gap),

but it seems there's no option to activate it only for row or column, right?

 

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.