Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I want to compare custom column with Fiscal Year.
when I have set Filter in Slicer "Sales Period" & Compare with any year data with Slicer "Compare To".
I can not get any solution to make it working.Help me out if anyone knows the solution.
Image is just for the reference.
Here is my data set below:-
Solved! Go to Solution.
@amitchandak
Hello Sir, I have got the solution
Your solution is nearby same but with the relation of two date table my slicer also filtered.
So I have create Two table with My financial Year column
First Table Name =Compare From
Second Table Name = Compare To
Compare From = VALUES(Financials[Financial Year])
Then Second
Compare To = VALUES(Financials[Financial Year])
Then we create one measure for remove same selected value from other slicer
So the measure for this
FY Selection Control = IF(SELECTEDVALUE('Compare From'[From Financial Year]) = SELECTEDVALUE('Compare To'[To Financial Year]),0,1)
Then apply this measure in visual level filter & set value to "1".
Then Create Two measure for Calculate Sales :
From Sales = CALCULATE([Total Sales],FILTER(Financials, Financials[Financial Year] IN {SELECTEDVALUE('Compare From'[From Financial Year])}))
To Sales = CALCULATE([Total Sales],FILTER(Financials, Financials[Financial Year] IN {SELECTEDVALUE('Compare To'[To Financial Year])}))
Then apply this two measure in your visual.
Here is the screenshot for the flow:
Two new tables unrelated to any other table in the model.
Create like this :
The selection filter is then applied at the visual level as follows:
The last sales measure is then applied to the visual.
Here's the last output:
Here is the screenshot for the flow:
Two new tables unrelated to any other table in the model.
Create like this :
The selection filter is then applied at the visual level as follows:
The last sales measure is then applied to the visual.
Here's the last output:
@amitchandak
Hello Sir, I have got the solution
Your solution is nearby same but with the relation of two date table my slicer also filtered.
So I have create Two table with My financial Year column
First Table Name =Compare From
Second Table Name = Compare To
Compare From = VALUES(Financials[Financial Year])
Then Second
Compare To = VALUES(Financials[Financial Year])
Then we create one measure for remove same selected value from other slicer
So the measure for this
FY Selection Control = IF(SELECTEDVALUE('Compare From'[From Financial Year]) = SELECTEDVALUE('Compare To'[To Financial Year]),0,1)
Then apply this measure in visual level filter & set value to "1".
Then Create Two measure for Calculate Sales :
From Sales = CALCULATE([Total Sales],FILTER(Financials, Financials[Financial Year] IN {SELECTEDVALUE('Compare From'[From Financial Year])}))
To Sales = CALCULATE([Total Sales],FILTER(Financials, Financials[Financial Year] IN {SELECTEDVALUE('Compare To'[To Financial Year])}))
Then apply this two measure in your visual.
@amitchandak Thank you so much for the quick response.
Can i give relationship of second Calendar table with Financial Table?
@ravi_609 , if you need two slicer , you need two date table. I have done for two date range. You can do for FY
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
Refer if needed
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 59 | |
| 31 | |
| 25 | |
| 25 |