The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have a table with cars transactions by month like below:
carID | Monthly_KM | month of transaction |
1 | 1000 | 01/01/2020 |
1 | 1500 | 01/02/2020 |
1 | 1300 | 01/01/2021 |
2 | 1400 | 01/01/2020 |
2 | 800 | 01/01/2022 |
I am trying to bin cars by average km yearly, and when I visualize it in yearly granularity I want to count the cars of last month with the transaction. For example, in 2020 it is December and in 2021 it is April.
the counting with classifications working great and shows the right numbers on monthly granularity, but I have a problem, to filter for "last transaction's" month when it is a yearly granularity. My formula is:
Solved! Go to Solution.
I solved it by myself with:
I solved it by myself with: