cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MKPartner
Frequent Visitor

Measure result isn't visible at all rows

Hi Team, 

 

I'm quite interesting of one thing. 

 

I have a two measures to calculate Total amount of Cost: 

 

NCR Cost Line Item = (SUM('NCR_Report'[qty])*(((SUM('PV LE'[prod_cost])+SUM('PV CU'[prod_cost]))/5.2)+SUM('PV FE'[prod_cost])))
NCR Cost = 
VAR __table = SUMMARIZE('NCR_Report',[shift],[fabric_name],[defect],[qty],"__value",[NCR Cost Line Item])
RETURN
IF(HASONEVALUE('Master Batch'[mfg_ord_no]),[NCR Cost Line Item],SUMX(__table,[__value]))

 

Data are collected from 4 queries with relation through Master Batch table (my uniqe values). 

 

Error.JPG

 

For the first view everything seems to be OK but I noticed that not all rows in my table has calculated cost as below: 

 

Error2.JPG

 

Missed data for three rows are collected from table PV FE. They are visible as there is a number in column "mfg_ord_no".

 

Any idea why it happened ? 

1 ACCEPTED SOLUTION

I investigate measure and the issue wasn't in measure itself. Measure works properly but issue was in filtering applied on graph & site level including relation with calendar. It's fixed.  

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

One of your measure steps returns BLANK().  To investigate you can use the new EVALUATEANDLOG() function.

I investigate measure and the issue wasn't in measure itself. Measure works properly but issue was in filtering applied on graph & site level including relation with calendar. It's fixed.  

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.