Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Let's say I have the model below. A Car table, a table with all gas consumed by each car in the company and another table with car status for each date. I know the "Status" column should be modeled in the table with the gas data but it is what it is.
I'd like to generate a table using DAX with total gas consumed by each car in each status and grouped by month/year like below:
Month/Year | Car | Status1 | Status2 | Status3 |
Jan/2020 | A | 10 | 13 | 7 |
Feb/2020 | A | 12 | 9 | 13 |
Jan/2020 | B | 15 | 7 | 8 |
Feb/2020 | B | 4 | 70 | 45 |
Any suggestions?
@sergiorodrigues , You need to have common status and Date table too
how to get a common table in DAX -https://www.youtube.com/watch?v=Bkf35Roman8
power query
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |