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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Drill thru page returning all results (not filtered results)

Hello Community:  

Situation is I've got a drill thru from one page to another. The "expected" behavior is that the drill thru page should return a filtered list of orders on a table on that page.  If I have a certain measure on that table (the first one listed below), the drill thru page returns ALL records...not the ones that should have been filtered from the originating page. If I remove that measure from the table I get the filtered list. So I need to fix that measure (or one of the measures in that measure).  Below are the measures involved.    

 

Again, my end goal is that the table on the drill thru page just shows the filtered results, not all records.

 

Order Performance Measure (Early + On Time %) =
1 - DIVIDE ( ([LateOrderCount]),[Number of Orders] )

 

 

LateOrderCount =
CALCULATE ( DISTINCTCOUNT ( ShippedOrdersALL_Query[Order Number] ),ShippedOrdersALL_Query[Exclude Weekends_On Time Status] = "Late" )

 

 

Number of Orders =
CALCULATE(
DISTINCTCOUNT(ShippedOrdersALL_Query[Order Number]),
'Dim_Date Table'[DatesWithShipDates] = True)
 
 
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@YukiK 

The original measure was the problem.   It's been fixed below, but it's created another problem, but less significant.  
 
What was causing the issue of all of the lines being counted was the 1 - Divide which caused the table to return all values.  
 
The measure below solves that problem, but what is happening now is that for the rows that are "Late" it is just showing a blank value.    I could do a quick fix by just adding a + 0 to the end of the measure, but this will end up causing my original issue again, of showing all rows, not just the filtered ones.  
 
I need the rows showing blanks to show 0% .   You can't see it in my screen shot, but these Orders are Late orders.   And because Late = 0% on time, then the value those rows should show is 0%.   

texmexdragon_0-1636490231800.png

 



Order Performance Measure (Early + On Time %) =
DIVIDE ( [EarlyOrderCount] + [OnTimeOrderCount],[Number of Orders] )

View solution in original post

3 REPLIES 3
YukiK
Impactful Individual
Impactful Individual

Such an odd behavior! I'd just double check to make sure your tables are related properly.

Anonymous
Not applicable

@YukiK 

The original measure was the problem.   It's been fixed below, but it's created another problem, but less significant.  
 
What was causing the issue of all of the lines being counted was the 1 - Divide which caused the table to return all values.  
 
The measure below solves that problem, but what is happening now is that for the rows that are "Late" it is just showing a blank value.    I could do a quick fix by just adding a + 0 to the end of the measure, but this will end up causing my original issue again, of showing all rows, not just the filtered ones.  
 
I need the rows showing blanks to show 0% .   You can't see it in my screen shot, but these Orders are Late orders.   And because Late = 0% on time, then the value those rows should show is 0%.   

texmexdragon_0-1636490231800.png

 



Order Performance Measure (Early + On Time %) =
DIVIDE ( [EarlyOrderCount] + [OnTimeOrderCount],[Number of Orders] )

Hi @Anonymous 

 

Try if this measure works

Order Performance Measure (Early + On Time %) =
IF (
    ISBLANK ( [Number of Orders] ),
    BLANK (),
    DIVIDE ( [EarlyOrderCount] + [OnTimeOrderCount], [Number of Orders] ) + 0
)

Or 

Order Performance Measure (Early + On Time %) =
IF (
    NOT ( ISBLANK ( [Number of Orders] ) ),
    1 - DIVIDE ( [LateOrderCount], [Number of Orders] )
)

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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