Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I need to automate this measurement to show the value BETWEEN THE PERIOD OF THE MONTH of each column period:
ROE = (DIVIDE([Lucro Líquido], [Patrimonio Liquido],0) / 1000)
Hi @Diego_Vialle ,
I created some data:
Here are the steps you can follow:
1. Use Enter data to create a table.
2. Create calculated column.
month =
FORMAT('Table'[Date],"mmm")&"/"&YEAR('Table'[Date])
3. Create measure.
Measure =
var _1=
CALCULATE(SUM('Table'[Patrimonio Liquido]),FILTER(ALL('Table'),
'Table'[month]=MAX('Table'[month])))
var _2=
CALCULATE(SUM('Table'[Lucro Líquido]),FILTER(ALL('Table'),
'Table'[month]=MAX('Table'[month])))
return
DIVIDE(_1,_2)
Measure 2 =
var _1=
CALCULATE(SUM('Table'[Patrimonio Liquido]),FILTER(ALL('Table'),
'Table'[month]=MAX('Table'[month])))
var _2=
CALCULATE(SUM('Table'[Amount1]),FILTER(ALL('Table'),
'Table'[month]=MAX('Table'[month])))
return
DIVIDE(_1,_2)
Measure 3 =
SWITCH(
TRUE(),
MAX('Table2'[Group])="Margem Liquida",[Measure],
MAX('Table2'[Group])="ROE",[Measure 2])
4. Result:
If you need pbix, please click here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Diego_Vialle , Not very clear. If you want to save on this month, last month etc. You can have a column
Month Type = Switch( True(),
eomonth([Date],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
12 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |