The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I'm trying to compare current month total expenses to the previous month total expenses. I'm using this to calculate that:
Solved! Go to Solution.
Hi @Georgez96 ,
Please check the relationship between two tables.
This is my test table:
Create a new calendar table:
Table = ADDCOLUMNS(CALENDAR(DATE(2022,7,1),DATE(2022,9,30)),"Month",FORMAT([Date],"mmm"))
Relationship between two tables:
You can use the month slicer to view the previous month totals:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Georgez96 ,
Please check the relationship between two tables.
This is my test table:
Create a new calendar table:
Table = ADDCOLUMNS(CALENDAR(DATE(2022,7,1),DATE(2022,9,30)),"Month",FORMAT([Date],"mmm"))
Relationship between two tables:
You can use the month slicer to view the previous month totals:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Furthermore, it seems to work only when I use the slicer from last month to current date(ex: 9/08/2022 - 10/08/2022) but not a calendar month.
Hi @Georgez96 ,
Can you share with me some screenshots of your data and relationships after hiding sensitive information?
Thanks for your efforts & time in advance.
Best regards,
Yadong Fang
I have a relationship already established between those two columns but perhaps it has to do with the cardinality?
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |