Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Urgent! Calculated measure in Power BI Desktop

I am struggling in the calculation to display value in Power BI Desktop. May I get your advice for this case?

Context:

I have a slicer for week, I will select 2 weeks in this slicer.

Then I want the chart below will show the value of the product that match condition:  

  - For each product => value of the max week in selection > 28 and value of the min week in selection < 28

Example: When I select week 16.2021 and week 17.2021

  • Result: display only value of product A in week 16.2021 and 17.2021.
  • Reason: the value of product A in week 17.2021 is 30 (>28) and value of product A in week 16.2021 is 20 (<28).

Issue: Could you please advice how can I apply the condition above? as below image, it should show only the product A.

Appreciate your help.

 

Nguyen_2-1620294274931.png

 

 

 

Data:

Nguyen_1-1620294128815.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Since I can't see the button that normally lets me paste formatted code in here, I have to place a picture. Sorry.

 

daxer_0-1620307136495.png

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Since I can't see the button that normally lets me paste formatted code in here, I have to place a picture. Sorry.

 

daxer_0-1620307136495.png

 

Anonymous
Not applicable

Dear Daxer,

Thank you very much for your support!!!!

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.