Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I am quite new to Power BI and I have the following issue. I have the following visual, where the column "Check_Global" is actually a measure.
The measure is computed as follows.
As you can see, ID totals are corrected but month totals no!
Please not that this calculation is very complex, so the ID sum could be not equal to the monthly sum...however it is useful to have a graphical representation of the monthly data. Instead, the sum over all ID for each month should be the exact sum!
The measure is computed as follows.
I humbly ask your help!
Thanks
Andrea
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it works.
Check_Global =
SUMX (
VALUES ( calendar_table[date_column] ),
CALCULATE (
IF (
OR (
SUMX ( 'CHP Units', 'CHP Units'[Check_Hours] ) > 0,
SUMX ( 'CHP Units', 'CHP Units'[Check_EE] ) > 0
),
1,
BLANK ()
)
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi,
I am not sure how your semantic model looks like, but please try something like below whether it works.
Check_Global =
SUMX (
VALUES ( calendar_table[date_column] ),
CALCULATE (
IF (
OR (
SUMX ( 'CHP Units', 'CHP Units'[Check_Hours] ) > 0,
SUMX ( 'CHP Units', 'CHP Units'[Check_EE] ) > 0
),
1,
BLANK ()
)
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi, it worked perfectly. Thank you
Hello @AndreaBracco
Could you please provide sample data that fully represents your issue or question in a usable format, rather than a screenshot? Ensure the dataset is anonymized and does not contain any sensitive or unrelated information.
Additionally, it would be very helpful if you could share the expected outcome based on the provided data - this can be in any format, including a screenshot. Having a clear reference for comparison will significantly improve the chances of getting the correct solution in the first response.
For best practices, you may find the following links useful:
Thanks,
Udit
🚀 Let's Connect: LinkedIn || YouTube || Medium || GitHub
✨ Visit My Linktree: LinkTree
Proud to be a Super User
User | Count |
---|---|
16 | |
15 | |
14 | |
12 | |
11 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |