Skip to content

Adding visual calc use case. #5218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

edwardpcharles
Copy link

Adding a visual calculation use case. Ideally there would be a completely new page created for visual calc examples that then link to different examples.

Copy link
Contributor

@edwardpcharles : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit d0e8c5e:

✅ Validation status: passed

File Status Preview URL Details
powerbi-docs/transform-model/desktop-visual-calculations-overview.md ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-01.png ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-02.png ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-03.png ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-04.png ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-05.png ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-06.png ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-07.png ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-08.png ✅Succeeded
powerbi-docs/transform-model/media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-09.png ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

Copy link
Contributor

PRMerger Results

Issue Description
Added File(s) This PR contains added files. New files require human review.
Image File This PR added or updated an image file(s).

@v-regandowner
Copy link
Contributor

@davidiseminger - Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged Tracking label for the PR review team label Apr 28, 2025
Copy link

This pull request has been inactive for 14 days. If you're done making changes, don't forget to sign off. See the contributor guide for instructions. If you're still working and want to stop these notifications, apply the "keep-open" label to your PR. However, we don't advise long-running PRs due to the risk of merge conflicts. We'll begin auto-closing stale PRs in September 2021. Thank you!
Power BI Docs Team
Contact Us
Contributor Guide

@v-dirichards
Copy link
Contributor

@davidiseminger - Could you review this proposed update to your article and enter #sign-off in a comment if it's ready to merge?

Thanks!

@github-actions github-actions bot removed the inactive label May 13, 2025
Copy link
Contributor

@jeroenterheerdt jeroenterheerdt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making these changes! It looks really good, but I have a few comments


Step 2: Click the “New visual calculation” button under the “Home” Tab:

:::image type="content" source="media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-02.png" alt-text="Screenshot of the button to create a visual calc in the Power BI Home Tab":::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

visual calc --> visual calculation

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please replace visual calc with visual calculation everywhere.


:::image type="content" source="media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-02.png" alt-text="Screenshot of the button to create a visual calc in the Power BI Home Tab":::

Step 3: Write your visual calc. Here is a if statement to return either green or red based on a measure being more then .5:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if --> IF

:::image type="content" source="media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-03.png" alt-text="Screenshot of DAX code listed out below in the visual calac editor":::

```dax
Conditional Hex Code = if([Progress]>.5,"#00FF00","FF0000")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update DAX code to: Conditional Hex Code = IF ( [Progress] > .5, "#00FF00", "FF0000" )


:::image type="content" source="media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-05.png" alt-text="Screenshot of the formatting pane showing you should apply a data type to your visual calc of text":::

Step 6: Before Exiting the Visual Calc editor click the eyeball next to the visual calc in the build section to hide it:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eyeball --> hide icon


:::image type="content" source="media/desktop-visual-calculations-overview/desktop-visual-calculations-hex-example-05.png" alt-text="Screenshot of the formatting pane showing you should apply a data type to your visual calc of text":::

Step 6: Before Exiting the Visual Calc editor click the eyeball next to the visual calc in the build section to hide it:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual Calc --> visual calculations (lowercase as well as not abbreviated)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this is for? Please add a highlight following the requirements here: https://learn.microsoft.com/en-us/help/contribute/contribute-how-to-format-screenshot#create-a-red-outline

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applies to all images where you want to call attention to a specific area

Copy link

This pull request has been inactive for 14 days. If you're done making changes, don't forget to sign off. See the contributor guide for instructions. If you're still working and want to stop these notifications, apply the "keep-open" label to your PR. However, we don't advise long-running PRs due to the risk of merge conflicts. We'll begin auto-closing stale PRs in September 2021. Thank you!
Power BI Docs Team
Contact Us
Contributor Guide

@jeroenterheerdt
Copy link
Contributor

@edwardpcharles ping?

@github-actions github-actions bot removed the inactive label May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants