Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have some data that shows starting date from a list of employees, I created a chat that shows the headcount split by deparment but I want to refec
Hi @Anonymous ,
According to your description, I create this data:
Here are the steps you can follow:
Scene:
Calculate the amount of group A and group B last month
1. Create measure to calculate the amount of group AB.
Group_Month = CALCULATE(SUM('Table'[amount]),FILTER(ALL('Table'),'Table'[Month]=MAX('Table'[Month])&&'Table'[Group]=MAX('Table'[Group])))
Result:
2. Create measure to calculate the amount of group A and group B last month
last_month =
IF(MAX('Table'[Month])=MONTH(TODAY())-1,'Table'[Group_Month],BLANK())
Result:
You can downloaded PBIX file from 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.
@Anonymous , I doubt question is not complete .
Based on title, you can have measure like
measure =
var _max = eomonth(allselected(Table, Table[Date]),0)
return
calculate(countrows(table), filter(Table, eomonth(Table[Date],0) =_max))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
79 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |