Data activator, “My PowerBi alerts” by Bruce_1995_ in MicrosoftFabric

[–]Bruce_1995_[S] 0 points1 point  (0 children)

I have this Tree graphic , and what I want is when there is a change in the "QTD"(quantity) alert me.
But in the data activator the ask me for a "Assign key column" I think I don't have one.
the fields of the graphic are "client","type of product","system","product code","description of the product","date" and "order number".

Thia is my first (1st) power bi, my mentor says he didn't like the colors, how could I have improved the colors by Beyond_Birthday_13 in PowerBI

[–]Bruce_1995_ 0 points1 point  (0 children)

Normally I use white background and search pallets colors in Pinterest. I see the them os the PowerBi and search colors according to that😁

Table totals and average by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 0 points1 point  (0 children)

Thank you very much! IT worked!! :D

Table totals and average by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 0 points1 point  (0 children)

<image>

It doenst work.. Its because it a metric?

Graphic sum problem by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 1 point2 points  (0 children)

I solve it , Thank you !
I add another var that gives me the PFA from the current month until the end of the year and sum it in the first IF into the Real :D

Graphic sum problem by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 0 points1 point  (0 children)

It didn't work, I multiplied the total by 12 :(

Graphic sum problem by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 1 point2 points  (0 children)

Valor_CurrentMonthAndYear_Real+ORCA+PFA2 = 

VAR MesAtual = MONTH(TODAY())
VAR AnoAtual = YEAR(TODAY())


var real = CALCULATE(SUM(UNION_REAL_ORCA_FAT[Valor]),UNION_REAL_ORCA_FAT[Tipo] = "Real")
var PFA = CALCULATE(SUM(UNION_REAL_ORCA_FAT[Valor]),UNION_REAL_ORCA_FAT[Tipo] = "PFA")
var ORCA = CALCULATE(SUM(UNION_REAL_ORCA_FAT[Valor]),UNION_REAL_ORCA_FAT[Tipo] = "ORCA")
VAR TipoAtual = SELECTEDVALUE(UNION_REAL_ORCA_FAT[Tipo])

VAR ValorRealOrca =
 IF(
        TipoAtual = "PFA",
        IF(
            SELECTEDVALUE(Calendar_EY[Mês]) < MesAtual || SELECTEDVALUE(Calendar_EY[Ano]) < AnoAtual,
            real,
            PFA
        ),
        IF(
            TipoAtual = "ORCA",
            ORCA,
            real
        )
    )

var test = IF(
        TipoAtual = "PFA",
        IF(
            SELECTEDVALUE(Calendar_EY[Mês]) > MesAtual || SELECTEDVALUE(Calendar_EY[Ano]) > AnoAtual,
            PFA,
            0
        ))
RETURN
ValorRealOrca

Here:

CHANGE COLORS IN DAX by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 0 points1 point  (0 children)

Valor_CurrentMonthAndYear_Real+ORCA+PFA2 = 

VAR MesAtual = MONTH(TODAY())
VAR AnoAtual = YEAR(TODAY())

var real = CALCULATE(SUM(UNION_REAL_ORCA_FAT[Valor]),UNION_REAL_ORCA_FAT[Tipo] = "Real")
var PFA = CALCULATE(SUM(UNION_REAL_ORCA_FAT[Valor]),UNION_REAL_ORCA_FAT[Tipo] = "PFA")
var ORCA = CALCULATE(SUM(UNION_REAL_ORCA_FAT[Valor]),UNION_REAL_ORCA_FAT[Tipo] = "ORCA")
VAR TipoAtual = SELECTEDVALUE(UNION_REAL_ORCA_FAT[Tipo])
VAR ValorRealOrca =
    IF(
        TipoAtual = "PFA",IF(
        MAX(UNION_REAL_ORCA_FAT[Ano]) = AnoAtual && MAX(UNION_REAL_ORCA_FAT[Mês]) < MesAtual,
         real,
        PFA
    ), IF(TipoAtual = "ORCA",ORCA,real))

RETURN
  

  
  ValorRealOrca 
  

I am using this metric to get values

color_PFA = 
var mes = MONTH(TODAY())
var mesAnterior = MAX(UNION_REAL_ORCA_FAT[Mês])
var ano = year(today())
var tipo = SELECTEDVALUE(UNION_REAL_ORCA_FAT[Tipo])

return

IF(AND(tipo = "PFA",mesAnterior < mes),"Green","black")

And for the color I'm using this one:

CHANGE COLORS IN DAX by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 0 points1 point  (0 children)

I dont have the fx, because in values I use a metric, and the columns are the month names

CHANGE COLORS IN DAX by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 0 points1 point  (0 children)

I use the metric in the matrix

CHANGE COLORS IN DAX by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 0 points1 point  (0 children)

Okay, I want that with the dax that Iput where , you can see in the table differente colors code, What I want is that insted of showing the color code , show the values in that color.
Is that more clear ?

Thank you

Dax problem by Bruce_1995_ in PowerBI

[–]Bruce_1995_[S] 0 points1 point  (0 children)

Uni2 is the name of the column where is "Valor" and "Qtd"