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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
PBI_newuser
Post Prodigy
Post Prodigy

Display rows with the selected criteria

Hi, I want to have a field if "Missing Invoice Date" is selected, only show rows that meet "Missing Invoice Date" criteria ,

if "Missing PO Date" is selected, only show rows that meet "Missing PO Date" criteria,

if "Missing Shipped Date" is selected, only show rows that meet "Missing Shipped Date" criteria. 

 

Below are the criteria:

  • Missing Invoice Date = PO Date entered but no Invoice Date
  • Missing PO Date = Invoice Date entered but no PO Date
  • Missing Shipping Date = Received Date entered but no Shipped Date

How to create the measure for the selection? Here is the sample file.

 

For example, when "Missing Invoice Date" is selected, the table display only Product A.

When "Missing Shipped Date" is selected, the table display Product C and D.

 

ProductPO DateInvoice DateShipped DateReceived Date
A12/1/2021   
B 13/2/2021  
C   14/3/2021
D 2/2/2021 1/5/2021
4 REPLIES 4
parry2k
Super User
Super User

@PBI_newuser I would recommend creating a column rather than a measure and then you can use it in the slicer, use @amitchandak DAX expression and remove wherever MAX function is used.

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



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.

Hi @parry2k , I have created Column for the 3 missing dates but I am not sure how to create the measures by using the Column. Could you please take a look at the sample file? Here is the sample file.

 

Missing Invoice Date = IF('Table'[PO Date]<>BLANK() && 'Table'[Invoice Date]=BLANK(),1,0)
Missing PO Date = IF('Table'[Invoice Date]<>BLANK() && 'Table'[PO Date]=BLANK(),1,0)
Missing Shipped Date = IF('Table'[Received Date]<>BLANK() && 'Table'[Shipped Date]=BLANK(),1,0)
 

PBI_newuser_0-1643244814930.png

 

amitchandak
Super User
Super User

@PBI_newuser , You can create a measure like

 

Switch( True()
not(isblank(max(Table[PO Date]))) , isblank(max(Table[Invoice Date])) , "Missing Invoice Date",
(isblank(max(Table[PO Date]))) , not(isblank(max(Table[Invoice Date]))) , "Missing PO Date",
// add other conditions
)

@PBI_newuser , Measure can be

 

Missing Invoice Date = Countrows(Filter('Table,'not(Isblank('Table'[PO Date])) && isblank('Table'[Invoice Date])))

Missing PO Date = Countrows(Filter('Table,'not(Isblank('Table'[Invoice Date])) && isblank('Table'[PO Date])))

Missing Shipped Date = Countrows(Filter('Table,'not(Isblank('Table'[Received Date])) && isblank('Table'[Shipped Date])))

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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