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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
simonetrv
Frequent Visitor

How Exclude who is 0 on a the selected period?

Hello everyone, I have the following promblem on Power BI: the canvas below show me a table where I can see all Whs (Wholesalers) information. How you can see the table includes all wholesalers even those in CY(current year turnover) or PY(past year turnover) have no data. All ratios as well as the 'wholesaler' filter(called "Rivenditore") are affected. For example, if I individually click on all wholesalers who have invoiced in both the past and present CY vs PY ratio, the result clearly changes. When I select a year from the drop-down menu, automatically when I click on the other drop-down menu, the one for wholesalers, I only find those who have data for this year, but when I click select all I get all and not just the entries for the current year. How can I do to see only those with data for each year and related ratio as CY vs PY (YoY) and GRAB CY vs PY ? (for the table I used the filters if CY is not blank and if PY is not blank but this solution does not change the ratios)InkedScreenshot 2023-03-07 101841.jpg

1 REPLY 1
amitchandak
Super User
Super User

@simonetrv , Create a measure

If(isblank([CY]) || isblank([PY]), Blank(), 1)

 

and use it as visual level filter and only have value 1

 

or

 

If(isblank([CY]) &&  isblank([PY]), Blank(), 1)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.