Forum Discussion
Comparing Two period slicer selection
- 6 years ago
Hi Mani_ms ,
I found that you filtered the group = BS in the matrix so I created a slicer for the group field and the following measure if I got it correctly:
Measure = VAR _group = SELECTEDVALUE ( 'FMA 011 CY'[Group] ) VAR _maxfis = CALCULATE ( MAX ( 'FMA 011 CY'[Fiscal Year/Period] ), ALLSELECTED ( 'FMA 011 CY'[Fiscal Year/Period] ) ) VAR _minfis = CALCULATE ( MIN ( 'FMA 011 CY'[Fiscal Year/Period] ), ALLSELECTED ( 'FMA 011 CY'[Fiscal Year/Period] ) ) VAR _max = CALCULATE ( SUM ( 'FMA 011 CY'[Balance - Cumulative] ), 'FMA 011 CY'[Group] = _group, 'FMA 011 CY'[Fiscal Year/Period] = _maxfis ) VAR _min = CALCULATE ( SUM ( 'FMA 011 CY'[Balance - Cumulative] ), 'FMA 011 CY'[Group] = _group, 'FMA 011 CY'[Fiscal Year/Period] = _minfis ) RETURN _max - _minAttached sample file: fille.pbix
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Mani_ms You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008
But, not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
- Mani_ms6 years agoHelper I
Hi,
Material quite useful. Ultimately what i am trying to get output is based on the selected months want to identify the difference between the selected value .
would be great if you could help on that.