Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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:
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.
Product | PO Date | Invoice Date | Shipped Date | Received Date |
A | 12/1/2021 | |||
B | 13/2/2021 | |||
C | 14/3/2021 | |||
D | 2/2/2021 | 1/5/2021 |
@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.
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 , 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])))
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |