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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
ROG
Responsive Resident
Responsive Resident

Wrong totals when calculating percentages (not possible with functions)

Hi all,


How can I have the correct total on my table below. I have read several similar questions about it in here, but all of them were solved using either HASONEVALUE or HASONEFILTER, but as you see below, my mesure is created on top of other metrics, and I'm unable to use this functions.
I know measure won't display the sum of the values in the column, but could you please help me with that?

Net Churn - 30D% YTD Var = [Net Churn - 30D% YTD] - [Net Churn - 30D% LYTD]
 
ROG_0-1676051177100.png

Thank you.

7 REPLIES 7
tamerj1
Super User
Super User

Hi @ROG 

what are you slicing by in this table?

ROG
Responsive Resident
Responsive Resident

Hi @tamerj1 

I'm using two different dimentions: Tenure and Customer Category
How should I use them on the calculation?

Hi @ROG 
Please try

Net Churn - 30D% YTD Var =
SUMX (
    CROSSJOIN ( VALUES ( 'Table'[Tenure] ), VALUES ( Customer[Category] ) ),
    [Net Churn - 30D% YTD] - [Net Churn - 30D% LYTD]
)
ROG
Responsive Resident
Responsive Resident

Hi @tamerj1  With the measure you provided is giving the not expected total. Even the rows are very different. 

ROG_0-1676298542332.png

 

@ROG 

Of these are the only columns in this table visual then it should work. Can you please share w screenshot of the dax code you've used?

ROG
Responsive Resident
Responsive Resident

Of course @tamerj1 

 

Net Churn - 30D% YTD Var_new =
SUMX (
    CROSSJOIN ( VALUES ( 'Tenure Band'[Tenure Band]),VALUES ( 'Tenure Band'[Tenure Flag]), VALUES ( 'Tenure Band'[Tenure FlagB]),VALUES ( 'Customer Category'[Customer Category Name]) ),
    [Net Churn - 30D% YTD] - [Net Churn - 30D% LYTD]
)

@ROG 

Please try

Net Churn - 30D% YTD Var_new =
SUMX (
CROSSJOIN (
SUMMARIZE (
'Tenure Band',
'Tenure Band'[Tenure Band],
'Tenure Band'[Tenure Flag],
'Tenure Band'[Tenure FlagB]
),
VALUES ( 'Customer Category'[Customer Category Name] )
),
[Net Churn - 30D% YTD] - [Net Churn - 30D% LYTD]
)

otherwise please share a screenshot of your data model with the relationships 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.