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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Comparing Measure with two Dynamic Dates in Matrix - Total not showing

Hi,

 

I have the following situation:

 

I want to compare the turnover with two dynamic slicers, i.e. I have 2 slicers that each specify a date.
Slicer 1 refers to SALES ACT REL, and slicer 2 to SALES ACT.

 

MicrosoftTeams-image (8).png

MicrosoftTeams-image (10).pngMicrosoftTeams-image (9).png

 

The data model looks like this:

 

MicrosoftTeams-image (11).png

 

 

Then I calculate in the column "NEW" whether there is a value in SALES ACT and not in SALES REL, which means that this turnover was newly generated.

 

MicrosoftTeams-image (12).png

 

This calculation also works, but it does not show me the total. I know the problem with the missing total and have tried to work around it by calculating the table with SUMX, but it does not show me a total.

 

MicrosoftTeams-image (13).png

 

What am I doing wrong? I have tried all possible combinations with SUMX and creating virtual tables, so far without success.
Is there a potential problem with the two dynamic time slicers?

Thanks for your help!

 
3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I guess the total row is also in the range of HASONEFILTER(V_FACT_SALES[KDNR_ARTNR], you can modify the formula like this to check it:

RETURN
IF( HASONEFILTER(V_FACT_SALES[KDNR_ARTNR],1,0)

If it return 1 in the total row, it means that this is the problem.

 

Then try to modify the return part of the formula like this:

RETURN
SUMX(tab,[DIFF])

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks for your response, I've changed "NEW SUMX" to your formula

 

RETURN
IF( HASONEFILTER(V_FACT_SALES[KDNR_ARTNR],1,0)

 

 

 

However, in the total column is a "0" displayed, so the TOTAL Column has no KDNR_ARTNR Filter.... 

MicrosoftTeams-image (15).png

 

 

 

Hi @Anonymous ,

If this is not the case, then try to modify the tab table in the formula, add related columns in the summarized table.

VAR tab=
SUMMARIZE(
           V_FACT_SALES,
           V_FACT_SALES[KDNR_ARTNR],
           V_FACT_SALES[NETTOUMSATZ],
           V_FACT_SALES[SZENARIO]
)

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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