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

Tip to transform data using a similar method to COUNT on Excel

Hey there,

 

I'm rather new to PowerBi hence wanted to get some insights.

I have gotten a dataset where i'm trying to count the number of times a certain keyword appears and transform it into another table. However as it is not as simple as Excel, I was wondering if anyone could advice?

 

I tried to do a quick illustration using Excel

Weilsong_0-1626082728467.png

 

3 REPLIES 3
Payeras_BI
Solution Sage
Solution Sage

Hi @Anonymous ,

I would always go for PQ for these types of transformations, but you still could manually unpivot your table with DAX.

 

UNPIVOTED TABLE = 
UNION (
    SELECTCOLUMNS (
        'Table',
        "Opportunity Number", 'Table'[Opportunity Number],
        "Value", 'Table'[Criteria 1],
        "Attribute", "Criteria 1"
    ),
    SELECTCOLUMNS (
        'Table',
        "Opportunity Number", 'Table'[Opportunity Number],
        "Value", 'Table'[Criteria 2],
        "Attribute", "Criteria 2"
    ),
    SELECTCOLUMNS (
        'Table',
        "Opportunity Number", 'Table'[Opportunity Number],
        "Value", 'Table'[Criteria 3],
        "Attribute", "Criteria 3"
    )
)

 

Payeras_BI_0-1626189035866.png

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Payeras_BI
Solution Sage
Solution Sage

Hi @Anonymous ,

Would you consider first to unpivot the table in the PQ editor? This would ease things.

Payeras_BI_0-1626087995730.png

Payeras_BI_1-1626088106617.png

Payeras_BI_2-1626088146550.png

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Anonymous
Not applicable

Hi @Payeras_BI ,

Thanks for the tip. However, the data that i need to pivot is not from the Raw Data set. I've manipulated the raw data sets using from DAX formulas outside the PQ Editor. Is there a way to do it outside the PQ editor?

Thanks!

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.