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

AllSelected

Hello Community -  I am not sure if AllSelected is the key to my issue, but I think maybe so....just not sure how to implement it.  

 

What is happening, is that when I either filter on an Order number...or if I select a row in the table below, instead of showing me the count in the card visual, it just says 0.    If I deselct the row, or remove the filter from the filter pane, then it shows me the total count again.    The behavior that I am expecting is that if I select one or more rows, the card visual on the right will show me how many orders I have selected based on the distinct order number.     Below is the formula for the card visual  (distinct AR shipments).

 

AR Distinct Order # Count = CALCULATE(DISTINCTCOUNT('Flu Shipped'[Order]),FILTER(DateTable,DateTable[Weekend or Weekday]="Weekday"),FILTER('Flu Shipped','Flu Shipped'[DateShipped]),FILTER('Flu Shipped','Flu Shipped'[AR] = True ))+0
 
 
 

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous not sure how your data model looks like and why you have filter conditions in there, why no go to basics first and then go from there, so add a measure like below and see if you can see the numbers when you select a row or value in the slicer

 

New Measure = DISTINCTCOUNT ( 'Flu Shipped'[Order] ) + 0

and with filters

New Measure =
CALCULATE (  
DISTINCTCOUNT ( 'Flu Shipped'[Order] ),
DateTable[weekend or weekday] = "Weekday",
'Flu Shipper'[AR] = TRUE
) + 0

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Does @parry2k solve your problem?

 

If he does, please accept his reply as a solution so that people who may have the same question can get the solution directly.

 

If not, please share us more details.

 

 

 

Best Regards,

Icey

parry2k
Super User
Super User

@Anonymous not sure how your data model looks like and why you have filter conditions in there, why no go to basics first and then go from there, so add a measure like below and see if you can see the numbers when you select a row or value in the slicer

 

New Measure = DISTINCTCOUNT ( 'Flu Shipped'[Order] ) + 0

and with filters

New Measure =
CALCULATE (  
DISTINCTCOUNT ( 'Flu Shipped'[Order] ),
DateTable[weekend or weekday] = "Weekday",
'Flu Shipper'[AR] = TRUE
) + 0

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.