The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Team,
I want the result of test growth to display 0.71 based on the highest month which is July but it ended up sum all of the value and ended up with result -1.0 for the total value.
Is there anyway to display only row value based on highest selected month that come with multiple selections as title mentioned.
Thank you.
Solved! Go to Solution.
Hi @Anonymous ,
Create a measure as below:
_Growth =
var _maxmonth=CALCULATE(MAX('Table'[Month]),ALLSELECTED('Table'))
Return
IF(ISINSCOPE('Table'[Month]),
SUM('Table'[Growth]),
CALCULATE(SUM('Table'[Growth]),FILTER(ALL('Table'),'Table'[Month]=_maxmonth)))
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Hi @Anonymous ,
Create a measure as below:
_Growth =
var _maxmonth=CALCULATE(MAX('Table'[Month]),ALLSELECTED('Table'))
Return
IF(ISINSCOPE('Table'[Month]),
SUM('Table'[Growth]),
CALCULATE(SUM('Table'[Growth]),FILTER(ALL('Table'),'Table'[Month]=_maxmonth)))
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Perhaps something like this, (btw its a DAX question):
Measure =
VAR _MaxMonth = calculate(max(month), allselected(months))
return
calculate(max(test growth)), filter(data, month = _MaxMonth))
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |