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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Newbie coming from Qlik

Hello!! Here I am again. After several months with Qlik, we decided to change to PowerBI and I am a bit newbie.

 

Some answers of a survey we send to our clients are automatically discarded by the system and considered as Irrelevant. I am not able to configure the DAX formule to do it. In Qlik I have:

 

count({$<state = {'Irrelevant'}>} ID_sell) / count(ID_sell)

 

I know I need to study a lot, but coming from another language is hard 😞

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Anonymous try:

 

DIVIDE(
CALCULATE(COUNTROWS('Table'), 'Table'[state] =  "Irrelevant"),
CALCULATE(COUNTROWS('Table'), REMOVEFILTERS('Table'[state]))
)

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
SpartaBI
Community Champion
Community Champion

@Anonymous try:

 

DIVIDE(
CALCULATE(COUNTROWS('Table'), 'Table'[state] =  "Irrelevant"),
CALCULATE(COUNTROWS('Table'), REMOVEFILTERS('Table'[state]))
)

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

SpartaBI
Community Champion
Community Champion

@Anonymous hey friend, do you want to do a quick zoom to show me?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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