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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How to show the group result on chart by ignoring the category's filter?

Hello everyone,

 

I have a table that includes info as below:

  • Year
  • Project
  • Control (checking point in audit)
  • Control Risk

A project might have a few different checking points with different risks, and I take the highest risk in the project as the Project's Risk (Please find the pic below as reference).

 

thisisyingchi_0-1644399734276.png

 

However, the result now is as pic below. It does count individuals but with the control risk, which makes the result should be 1 project in 2020 looks like 3.

thisisyingchi_1-1644399826438.png

 

Is it because I put the "Risk" in the Category, meanwhile the connection between the "Risk" and "Control Risk" still works?
To solve this problem, I tried to have this measurement by DAX:

Project_amount = CALCULATE(
    DISTINCTCOUNT('Project'[Project Code]), #calculating project amount
    ALLEXCEPT('Project','Project'[Project Risk]), #keep the filter of the project risk
    #force the connection between Risk and Control Risk invaild
    CROSSFILTER(
        'Risk'[Risk],
        'Project-Control'[Control Risk],
        None),
    #force the connection between vaild
    CROSSFILTER(
        'Risk'[Risk],
        'Project'[Project Risk],
        Both),
    CROSSFILTER(
        'Project-Control'[Project Code],
        'Project'[Project Code],
        Both))

 

Please help and let me know if more information is required, thank you!

 

Data Model:

螢幕擷取畫面 2022-02-09 180404.png

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You should add project risk to project control tbale

 

new column in

project risk = related(project[Project Risk])

 

Now you should have an inactive join, which you can activate using userelationship

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

If you look carefully, you will find the "Project Risk" is already in the "Project-Control" table.
However, if a project is mixed with 2 different "Control Risk", the project amount on the chart shows 2 instead of 1.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.