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

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

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors