cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
singh_gagan30
Helper I
Helper I

How to dynamically calculate the minimum value

Hi All,

 

I have got this problem where I am trying to calculate the minimum of the column and subsequently use that value in calculation of the further expressions.

Minimum Price = For an item (Eg. A) in period (Eg. P1) we should be having the minimum value.

Revenue at Minimum Price = For the minimum value calculated above we need to multiply it with the volume to get this expression.

Difference = Revenue – Revenue at Minimum Price

Scenario

singh_gagan30_0-1614678873827.png

 

When I now deselect a country, in this case let’s say I deselect country UAE

singh_gagan30_1-1614678873830.png

 

 

The data model I am getting is in a star schema where the Period comes from “reporting dates” table, region and country from the “customer” table, item from “product” table and the volume, price and value are from the “fact” table.

 

Please help in writing the DAX for the Minimum Price, Revenue at Minimum Price and Difference.

0 REPLIES 0

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors