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.
Hello Guys how are you?
Imagine that I have the following table structure:
Product Description / Date (at day level) / Hour (24 in a day) / Volume
Summarized data:
My target is: when the user selects the month of March, for example, I should show the sum of Billed and Invoiced for all days / hours in the selected month (these are ok)
But for reading, I need to split it into 2 measures:
Example:
"Reading Last Month"
"This Month"
Therefore, the final result should be:
Links for the PBI file and Excel Data
I appreciate all the community help here 👊
Solved! Go to Solution.
Hi @leorrn ,
Please refer to my pbix file to see if it helps you.
Create a measure.
Measure =
VAR _1 =
MAXX (
FILTER (
ALL ( Table1 ),
Table1[product_descr] = "Reading"
&& Table1[Year Month] = SELECTEDVALUE ( Table1[Year Month] )
),
Table1[Hour]
)
RETURN
CALCULATE (
MAX ( Table1[Final Volume] ),
FILTER (
ALL ( Table1 ),
Table1[Year Month] = SELECTEDVALUE ( Table1[Year Month] )
&& Table1[product_descr] = "Reading"
&& Table1[Hour] = _1
)
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @leorrn ,
Please refer to my pbix file to see if it helps you.
Create a measure.
Measure =
VAR _1 =
MAXX (
FILTER (
ALL ( Table1 ),
Table1[product_descr] = "Reading"
&& Table1[Year Month] = SELECTEDVALUE ( Table1[Year Month] )
),
Table1[Hour]
)
RETURN
CALCULATE (
MAX ( Table1[Final Volume] ),
FILTER (
ALL ( Table1 ),
Table1[Year Month] = SELECTEDVALUE ( Table1[Year Month] )
&& Table1[product_descr] = "Reading"
&& Table1[Hour] = _1
)
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |