cancel
Showing results for
Did you mean:
Highlighted Helper V

## Does it measure whether another column goes back blank?

So I have a fact table with data per ID for different metrics. I have a measure that calculates the proportions based on the data in the fact table. This fact table also has a column for 2020 Current, Budget 2020, and Variation 2020 to the Budget named Year Type.

I have another table that groups IDs by country.

I'm creating a matrix with Country as the top level in columns and Year type as the second level in columns. Then all my measurement proportions are values that are displayed as rows.

Therefore, it would show US as a top-level column, and then the column level below would be 2020 Current, 2020 Budget, and 2020 Variation to Budget.

This works well, but the deviation to the budget is misleading. The calculation works correctly, but the variance must be calculated differently. Here's an example of my data: So you can see in the ratio column that the measure would correctly calculate for deviation (Earnings/Price), however, the result is not correct. Must be 25%-10%.

I need my data structured as Country at Level 1 for Columns and Year Type for Level 2 in a matrix. I can try to create a measure that makes the variance as set above (25%-10%), or if I could leave the result blank because the current result is a bit misleading.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted Resolver II

## Re: Does it measure whether another column goes back blank?

Hi @nobodyukno ,

Can you try the following measure

``````Ratio =
VAR _earnings = calculate(sum(myTable[Amount]),Account="Price")
VAR _price = calculate(sum(myTable[Amount]),Account="Earnings")
RETURN
if(Account="Earnings",
DIVIDE(_earnings,_price),
BLANK()
)``````
Highlighted Resolver II

## Re: Does it measure whether another column goes back blank?

Hi @nobodyukno ,

Can you try the following measure

``````Ratio =
VAR _earnings = calculate(sum(myTable[Amount]),Account="Price")
VAR _price = calculate(sum(myTable[Amount]),Account="Earnings")
RETURN
if(Account="Earnings",
DIVIDE(_earnings,_price),
BLANK()
)``````

Announcements #### Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members. #### Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start. #### Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications #### Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021 Top Solution Authors
Top Kudoed Authors
Users online (1,141)