Hi @jprlimey
Incorrect value for “Totals” is the most annoying thing for me with Power BI Why can’t they provide an option to just sum up all the records for that measure in visual.
Anyways based on your formula, problem is for “Total”, all Review No’s are available and as you are using SelectedValue function it will return Blank(), thus doing Sum over all the Reveiw No.There is no single function that can help.
As you rightly mentioned you need to create Virtual table in calculation and along with HASONEVALUE() or ISINSCOPE(). Refer to below article, it has got lots of details.
Regarding your second problem, try below. Replace MonthnYear with ReviewNo
MinValue =
VAR MinRec =
CALCULATE ( MIN ( Dates[MonthnYear] ), ALLSELECTED ( Dates[MonthnYear] ) )
RETURN
IF ( SELECTEDVALUE ( Dates[MonthnYear] ) = MinRec, BLANK (), [Total Sales] )
Please share PBIX file if you want detailed answer on 1st Problem.
Thanks
Ankit J