Forum Discussion
Max range axis
- 3 years ago
Hi Anonymous ,
Please try:
MAX VALUE2 = var _a = CALCULATE(SUM('Case'[Actual]),FILTER(ALLEXCEPT('Case','Case'[Date]),[EBITDA]="EBITDA")) var _b = CALCULATE(SUM('Case'[Forecast]),FILTER(ALLEXCEPT('Case','Case'[Date]),[EBITDA]="EBITDA")) var _c = CALCULATE(SUM('Case'[Actual]),FILTER(ALLEXCEPT('Case','Case'[Date]),[Cash Flow]="Cash Flow")) var _d = CALCULATE(SUM('Case'[Forecast]),FILTER(ALLEXCEPT('Case','Case'[Date]),[Cash Flow]="Cash Flow")) return MAXX({_a,_b,_c,_d},[Value])Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Based on your description, I have created a simple sample:
Please try:
Max Value =
var _a = MAX('Table'[A])
var _b = MAX('Table'[B])
return MAXX({_a,_b},[Value])
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous3 years agoNot applicable
Hi Jianbo,
Greatly appreciate your help!
My current data structure is like this, where the attributes are in two separate columns:
I'm not able to have both graphs in a single chart.
Hence I had to put it into 2 separate charts, and I wish to have the charts both at 600 plus max axis:
I actually added it onto your power bi file, but somehow can't seem to add the file here 😅
These were my measures:
Cashflow Actual = CALCULATE(SUM('Case'[Actual]),'Case'[Cash Flow]="Cash Flow")Cashflow Forecast = CALCULATE(SUM('Case'[Forecast]),'Case'[Cash Flow]="Cash Flow")
Max Cashflow actual/forecast =var _a = [Cashflow Actual]var _b = [Cashflow Forecast]return MAXX({_a,_b},[Value])- v-jianboli-msft3 years ago
Community Support
Hi Anonymous ,
Please try:
MAX VALUE = var _a = CALCULATE(SUM('Case'[Actual]),FILTER(ALL('Case'),[EBITDA]="EBITDA")) var _b = CALCULATE(SUM('Case'[Forecast]),FILTER(ALL('Case'),[EBITDA]="EBITDA")) var _c = CALCULATE(SUM('Case'[Actual]),FILTER(ALL('Case'),[Cash Flow]="Cash Flow")) var _d = CALCULATE(SUM('Case'[Forecast]),FILTER(ALL('Case'),[Cash Flow]="Cash Flow")) return MAXX({_a,_b,_c,_d},[Value])Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous3 years agoNot applicable
Hi v-jianboli-msft , greatly appreciate your help!
I tried it in my main dashboard, one thing is my data has quite a number of other fields/filters, and the max range remained large after selecting various filters.
One such field example is date which I have added to the 'case' example:
Would it be possible to make the max range dynamic, such that the max range follows the various filters:
Thank you.