The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I have some car that belong to Shop/ Profit Center. Car -Shop - Year
For example:
- Car "Renault 1" belong to shop London from 01.01.2018 until today 31.12.2100
- Car "BMW 1" belong in year 2018,2019 to shop Paris with Valid 01.01.2018 -31.12.2019 and from Year 2020 - today to Berlin
01.01.2020 - 31.12.2100
- Car "BMW 2" Paris - New York- Berlin
- Car "Renault 2" with wrong Valid From- Valid to Date
- Car "Mercedes 1" with wrong Valid From - Valid to Date
How can i check and show the car with wrong Date (all rows of car "Renault 2" and "Mercedes 1")?
Expl. Data
https://www.dropbox.com/sh/7vd96atx66e7dcz/AAD7DfC6cUhX7EEg0JiqZzV6a?dl=0
thanks
here is correct
Car belong until 31.12.2019 - to Paris
From 01.01.2020 - today - Berlin- there ist no gap in the Date
here is wrong
there is a gap from 09.012020 - 01.05.2020.
The report show me the wrong records - and that i know to correct it.
year 2019 - Mercedes 1 01.01.20218 - 09.01.2020
year 2020 - Mercedes 1 01.05.20220- 10.01.2020
@TeQ Looks like there's a few different scenarios. The one you described I have called "Move Shops", but there is also the case where it stays in the same shop multiple years in a row and therefore has the same validity dates, so I have called that "Renew"
Create new columns:
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@TeQ Sorry for the silly question, but can you please explain how you know it has a wrong date? Is there another table with valid conditions?
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
81 | |
75 | |
52 | |
48 |
User | Count |
---|---|
134 | |
124 | |
78 | |
64 | |
63 |