Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I try to make a graph that show from the first month of the selected year until selected month filter.
(example: when we select year 2021 and month 5, it will show from january to may)
But as you can see from the pic, when the filters at 2021 05, the graph just show may, not from january until may.
Here's the look of my data:
This is period table
and this is model table
I've already make 2 measure that contain Start and End Period
This measure to always show First Month:
This Measure that I put on the Graph:
Please help where that i did wrong.
Here's I attached my pbix (Page2)
PBIX Testing
Solved! Go to Solution.
hi @agustira97
tried to simulate your scenario with simplified dataset like:
1) plot a slicer with a column from an isolated table like:
2) plot a visual with month column of your record table and a measure like this:
Measure =
IF(
MAX(TableName[Month])<=SELECTEDVALUE(Slicer[MonthSlicer]),
SUM(TableName[Amt]),
BLANK()
)
You see, when you choose a different month in the slicer, the chart axis changes accordingly:
The piont is:
the column to feed the slicer needs to be isolated from your record table, otherwise you selecting a data point instead of a range.
Hi, thank you for the answer @FreemanZ
I've already tried it on my case and It works.
Next Question is, this slicer not just on 1 graph, but also the other graph. It means another graph measure also need to adjust with this isolated slicer right?
Cause I have another chart like gauge chart, but I dont need to sum from the first month of the year, it just need to sum from selected year.
Just to make sure, Thank you.
hi @agustira97
tried to simulate your scenario with simplified dataset like:
1) plot a slicer with a column from an isolated table like:
2) plot a visual with month column of your record table and a measure like this:
Measure =
IF(
MAX(TableName[Month])<=SELECTEDVALUE(Slicer[MonthSlicer]),
SUM(TableName[Amt]),
BLANK()
)
You see, when you choose a different month in the slicer, the chart axis changes accordingly:
The piont is:
the column to feed the slicer needs to be isolated from your record table, otherwise you selecting a data point instead of a range.
Hi @FreemanZ
This is my question also, i used your measure in my scenerio .but from my side this measure is not working ,attached screenshot for reference. please give breif answer as soon as possible.
Regards,
Vidya
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
16 | |
13 | |
10 | |
8 | |
7 |
User | Count |
---|---|
25 | |
14 | |
11 | |
11 | |
10 |