Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hey all! Have been working with PowerBI for a bit, but this one has me needing assistance.
I have a bar/line chart combo with Creation Date on the X axis, TCV and Deal count on the y axis. I also have a slicer at the top of the page for fiscal date (Allows for a selection of YR and Quarter). I intended to the have user select a fiscal date, which would then filter this graph to the proper creation date.
So user selects 2023 Qtr 1 & 2 fiscal date-> graph filters down to this fiscal date and shows the proper TCVs and deal counts. The issue I'm coming across is that when I use a column reference within the same table, it breaks the filtering.
This doesn't work:
I would then add this as a visual filter and set it to only display '50' (using 50 here because it's easy to debug visually on the graph - see above graphs)
Solved! Go to Solution.
I feel like you are going down the wrong path in your design. Generally in measures you just want to use the context to get to your result. I'd approach it more like:
Graph Output = var startDate = MIN('table1'[Fiscal Period])
var endDate = MAX('table1'[Fiscal Period])
RETURN
CALCULATE(
SUM('table1'[YourOutputValueColumn]),
ALL('table1'),
'table1'[Create Date fiscal Period]) >= startDate,
'table1'[Create Date fiscal Period]) <= endDate
)
I feel like you are going down the wrong path in your design. Generally in measures you just want to use the context to get to your result. I'd approach it more like:
Graph Output = var startDate = MIN('table1'[Fiscal Period])
var endDate = MAX('table1'[Fiscal Period])
RETURN
CALCULATE(
SUM('table1'[YourOutputValueColumn]),
ALL('table1'),
'table1'[Create Date fiscal Period]) >= startDate,
'table1'[Create Date fiscal Period]) <= endDate
)
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 |
---|---|
102 | |
68 | |
45 | |
37 | |
36 |