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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Marcin
Helper V
Helper V

One number in measure vs filter context

Hi,

 

i would like to create measure like :

 

DIVIDE ( SUM(Sales1[Amount]) ;  SUM(Sales2[Amount])  ; 0 ) - 1 

 

But I have a problem with filter/row context when use this measure in table per time becasue of -1. 

 

How to resolve that t? 

 

 

5 REPLIES 5
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Marcin,

Based on my test, your formula could work on my side:

1.PNG

What is your desired result?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HI @v-danhe-msft

 

The problem appears when the measure will be presented in time dimension :

 

Capture.PNG

 

 

Then I get all -1 vaules by all time day dimensions.

 

 

Omega
Impactful Individual
Impactful Individual

@Marcin 

 

It's either your totalsales is 0 at those dates, there is an issue in the formula TotalSales measure or the variance between TotalSales and TotalDiscount is very minimal (very close to zero). Try the below: 

 

  • Check the totalSales formula
  • Drag Date and TotalSales
  • Change Test Measure data type to percentage

Hi @Marcin,

I could not reproduce your problem, could you please share some sample data to have a test if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Omega
Impactful Individual
Impactful Individual

Please share sample data with expected results. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.