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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
ldbello
Frequent Visitor

Meassure Calculation

Dear all,

 

I am not able to obtain the right result. Could you help me please?

 

IssuesReportingCalcReal Estimated 
35,35143107,65107,65 
106,0543-63,050Negative must be "0"
187,675-112,60Negative must be "0"
71,05394322,95322,95 
122,8516340,1540,15 
160,3156-4,30Negative must be "0"
105,719892,392,3 
  383,1563,05 
     
MeasureCalc = IF([Issues]-[Reporting]<0;0;[Issues]-[Reporting])
Obteined wrong results "383,10"  
     
or this Calc    
(Issues-Reporting)*70%/2, If the result obtained is negative show "0"
1 ACCEPTED SOLUTION

Hi @ldbello ,

 

I have updated my test file. You could download and refer to it.

3-1.PNG

My sample data may be a little different with yours because I used whole number.

 

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

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

Please share the formula for the issue and reporting.  Measure calculation depends(may) on the level where it happens so need to check that.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks a lot,

 

I do not have any issue, just only want the calc without negavite values using one or two ways as commented:

 

The calc/form is: MeasureCalc = IF([Issues]-[Reporting]<0;0;[Issues]-[Reporting])

 

       Expecting without negative values
(-63,-113,-4)
Obtained
Issues3510618871123160106789
Reporting14343753941631561981172
Sum108-63-11332340-492383
Sum1080032340092 
       563 

Hi @ldbello ,

 

You could try the following measure:

Measure =
SUMX ( 'Table'; IF ( [Issues] - [Reporting] < 0; 0; [Issues] - [Reporting] ) )

 

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

Thanks a lot,

 

It doesn´t work because I´m working without table, only meassures. Only want to keep out negative values, the calc must be 563.

 

Calc2.png

 

Regards,

Hi @ldbello ,

 

I have updated my test file. You could download and refer to it.

3-1.PNG

My sample data may be a little different with yours because I used whole number.

 

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

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.