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.
Hello,
I am facing issue with hierarchy level total. It is showing incorrect total at top level for one field only.
Hierarchies- Rcode-Mcode-Hubname-dealer name
Till 'Mcode' it is showing correct total only at 'Rcode' it is incorrect.
Measure for that field is-
Total units-
var Lastmaxdate = MAX(FactPJP[DateOfQuarter])
var lvalue= CALCULATE (
SUM(FactPJP[TotalNumberOfUnitsInMonth])
,FactPJP[DateOfQuarter] = LastTime,REMOVEFILTERS(DimDate)))
RETURN lvalue
please help me with that.
@Anonymous m are you trying cumulative tota, then you should try like
Total units=
var lvalue= CALCULATE (
SUM(FactPJP[TotalNumberOfUnitsInMonth])
,filter(all(DimDate),DimDate[DateOfQuarter] = max(DimDate[date])))
RETURN lvalue
Thanks for the solution.
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |