Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello
Need help filter out data in a dataset
I have a table that looks like this:
Date 1 | Date 2 | Value 1 | Values |
2022-09-01 | 2022-10-01 | A | 1231 |
2022-09-01 | 2022-10-02 | C | 1232 |
2022-09-01 | 2022-10-03 | B | 1233 |
2022-09-01 | 2022-09-01 | B | 1234 |
2022-09-01 | 2022-09-02 | A | 1235 |
2022-09-01 | 2022-09-03 | C | 1236 |
2022-09-01 | 2022-09-01 | B | 1237 |
I want to filter out rows in “date 2” column that don’t match the same month in “Date 1” column.
Expected result should be:
Date 1 | Date 2 | Value 1 | Values |
2022-09-01 | 2022-09-01 | B | 1234 |
2022-09-01 | 2022-09-02 | A | 1235 |
2022-09-01 | 2022-09-03 | C | 1236 |
2022-09-01 | 2022-09-01 | B | 1237 |
Anyone that can help me out here?
Solved! Go to Solution.
Hi @Westen
I'm not a power query expert but you can add a conditional flag column somthing like
each if Date.Month ( [column1] ) = Date.Month ( [column2] ) then 1 else null
then you can filter out the blanks
Hi @Westen
I'm not a power query expert but you can add a conditional flag column somthing like
each if Date.Month ( [column1] ) = Date.Month ( [column2] ) then 1 else null
then you can filter out the blanks
Thanks! That solves my problem.
In PowerQuery or in DAX? If DAX, what do you want to calculate?
I want to remove them in PowerQuery.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
67 | |
65 | |
42 | |
42 |
User | Count |
---|---|
46 | |
38 | |
28 | |
26 | |
26 |