Skip to content

Instantly share code, notes, and snippets.

View HansPeterPfister's full-sized avatar

HansPeterPfister

View GitHub Profile
= Table.AddColumn(Quelle, "führende Null", each Text.PadStart([Spalte1],7,"0"))
Umsatz Plan aktuelles Jahr =
CALCULATE(
sum(Umsatzliste[Wert]);
Kalender[relatives Jahr]=0
)
Umsatz Plan =
CALCULATE(
sum(Umsatzliste[Wert]);
Filter(Umsatzliste;Umsatzliste[Szenario]="Plan");
Filter(Kalender;Kalender[relatives Jahr]>0)
)
Umsatz_Vorjahre =
CALCULATE(
sum(Umsatzliste[Wert]);
Filter(Umsatzliste;Umsatzliste[Szenario]="IST")
)
Umsatz = CALCULATE(
SUM(Umsatzliste[Wert])
)
if(
maxx(
Filter(RLS,
RLS[User]=USERNAME()
)
,[Role]) = "Board" ||
maxx(
Filter(RLS,
RLS[User]=USERNAME()
)
if(
maxx(
Filter(RLS,
RLS[User]=USERNAME()
)
,[Role]) = "Board" ||
maxx(
Filter(RLS,
RLS[User]=USERNAME()
)
RLS_Measure = LOOKUPVALUE(
RLS[ShowMeasures];
RLS[User];USERNAME()
)
Product Cost = if(
[RLS_Measure]=0 ;
BLANK();
sum(FactResellerSales[TotalProductCost]) * [RLS_Measure]
)
Profit pct = If (
[RLS_Measure]=0;
BLANK();
DIVIDE([Sales Profit]*100;[Sales Amount])
* [RLS_Measure]
)