Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Experts,
I have data set like this.
I am trying to come up with 2 cards with side by side comparision of value (today vs last day of last month).Do we need to create 2 different measures ?Could you please help on how to achieve this?
Date, Value
-------------
6/1/2021,100
6/2/2021,200
6/30/2021,300 -- Last Month Value
7/1/2021,400
7/14/2021,500 -- Today's Value
Expected Result as of 7/14/2021
-------------------------------------
300 , 500
Solved! Go to Solution.
Hi @tina345 ,
Here are the steps you can follow:
1. Create measure.
lastdate =
CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Date]=EOMONTH(TODAY(),-1)))Today = CALCULATE(SUM('Table'[Value]),'Table'[Date]=TODAY())IF =
IF([lastdate]>[Today],"True","Flase")
2. Place it in the Mutli -row card
3. Result:
Three measures will be placed in a Card to display all the results
Best Regards,
Liu Yang
Hi @tina345 ,
Here are the steps you can follow:
1. Create measure.
lastdate =
CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Date]=EOMONTH(TODAY(),-1)))Today = CALCULATE(SUM('Table'[Value]),'Table'[Date]=TODAY())IF =
IF([lastdate]>[Today],"True","Flase")
2. Place it in the Mutli -row card
3. Result:
Three measures will be placed in a Card to display all the results
Best Regards,
Liu Yang
I got it, we can use multiple conditions.
There is some syntax issue.
Thaks a lot.
@tina345 ,Try two measures like
calculate(sum(Table[Value]), filter(Table, Table[Date] = today()))
calculate(sum(Table[Value]), filter(Table, Table[Date] = eomonth(today(),-1)))
Thanks Amitchandak,
If I have to add one more filter, what is the easiest way to do that?
There will be 2 filter, and looks like sum takes only 1 argument.
I am getting too many arguments to the Sum function error message.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!