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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Abhishek1
Regular Visitor

If Formula

Hi All,

 

    I am having an issue here and would appreciate your help. I am very new to Power BI. I have had my data unpivoted. Now what i want to do is, If i select a certain coloumn "Request Type" = Proposal and Also select another coloumn "Is Proposal" = Yes, iwant the countDisticnt of project i.e. DISTINCT COUNT( Name). But when i write this it give me the distint count of projects accross all Request Types which is 259 but i want it to be 69.(Verified it on Excel)

 

 

I hope i have explained the question in a rightway!

 

Can anyone help?

 

Thank you.

 

 

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi Abhishek1,

 

Based on your description, you want to distinct count a column grouped by other columns, right?

 

You can use "Group By" in Query Editor, click Transform->Group By, refer to: https://docs.microsoft.com/en-us/power-bi/desktop-common-query-tasks#group-rows.

1.png  

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi Abhishek1,

 

Based on your description, you want to distinct count a column grouped by other columns, right?

 

You can use "Group By" in Query Editor, click Transform->Group By, refer to: https://docs.microsoft.com/en-us/power-bi/desktop-common-query-tasks#group-rows.

1.png  

 

Regards,

Jimmy Tao

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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