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 guys,
I've got one table with the columns 'year' and 'price' and I use 'year' as the x-axis of my line diagram. For the years 2022 - 2025 I use the price values from the same table, but for the years 2020-2021 I have to use price values from another table. How can I express this issue in DAX?
Best regards
Use SELECTEDVALUE() or equivalent to sense where on the visual you are (in your case where on the x axis) and then calculate the measure value accordingly.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
14 | |
10 | |
10 | |
9 |