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
XaviOV
Helper V
Helper V

Calculated table with different ID

Hello,


I have a table with different values, questions and answers, and it is grouped by an ID that is random.
How could you calculate these different values in relation to those IDs? That is, I want to differentiate each group of questions / answers by their corresponding ID.

I have attached a screenshot.

Regards,

Xavi

PowerBI_calculated.png

2 REPLIES 2
v-zhenbw-msft
Community Support
Community Support

Hi @XaviOV ,

 

If you want to display only the ID and the corresponding questions and answers, we can use following  two ways to meet your requirement.

 

1. Create a new calculate table using GROUP BY.

 

Table 2 = GROUPBY('Table','Table'[ID random],'Table'[Question],'Table'[Answer])

 

calculate 1.jpg

 

2. Or we can put them to a table visual.

 

calculate 2.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-zhenbw-msft 

 

I made an example table in Excel that I want to do in Power BI, the "Receta" column will be the column that I will create in Power BI.

 

1.png

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.