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.
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])))
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
User | Count |
---|---|
398 | |
105 | |
68 | |
55 | |
49 |
User | Count |
---|---|
378 | |
118 | |
82 | |
67 | |
54 |