cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Hide values with calculate

Hi people, 

 

Im new in power bi and have a couple of questions with my data model, its very simple,

 

I have the following measure to retrieve only Argentina Sales as you can see on "Visual A", I dont have a DimTable for countries.

 

My question is, is there a way to show only the data of the country (or element in any other situation) that im filtering with CALCULATE as in "Visual C" or "Visual D"?

 

Thank you

 

Calculate.png

 

 

 

 

1 ACCEPTED SOLUTION
Resolver IV
Resolver IV

For Visual C just make a measure saying if(selectedvalue(country)="Argentina",sum(sales),blank and in tick the dropdown just select(show items with 0 data) and for visual D just untick this checkbox.

 

 

View solution in original post

2 REPLIES 2
Resolver IV
Resolver IV

For Visual C just make a measure saying if(selectedvalue(country)="Argentina",sum(sales),blank and in tick the dropdown just select(show items with 0 data) and for visual D just untick this checkbox.

 

 

View solution in original post

Super User III
Super User III

Hi, @chdelgado , you might want to try

= CALCULATE ( [Total Sales], KEEPFILTERS ( FactTable[Country] = "Argentina" ) )

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors