cancel
Showing results for 
Search instead for 
Did you mean: 
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.






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
)

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

@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])))

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!