将多个选择查找列分成多个列 [英] Breaking multiple selection lookup column into multiple columns

查看:109
本文介绍了将多个选择查找列分成多个列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,


我有一个包含多个选择的查阅列。这使得用户更容易,但这意味着我无法将其用于Power BI进行报告。


我想创建其他列,每个列都指向
one <多个选项中的/ span> - 基本上将一列拆分为多个。这些列将隐藏给用户,我可以将它们引入报告。我想要做的一个直观的例子如下。



我不知道怎么做 - 大概会使用计算列,但是我不知道公式是什么。


有什么想法吗?
















< tr>













查找多个条目



隐藏列1


如果第1行=非空白显示行1



隐藏的第2列


如果第2行=非空白显示第2行



隐藏列3


如果第3行=不是空白显示行3



迪拜


英国


欧洲


美洲



迪拜



英国



欧洲



新加坡



新加坡







Europe


香港



欧洲



香港





解决方案

您好,


SharePoint计算列不支持查阅列。


对于此要求,我建议您使用Odata Feed来检索SharePoint列表数据。


示例端点:( AreaRef是多个查找列,标题是AreaRef列的显示字段)


/ _ AP​​I /网络/列表/ getbytitle( 'SharePointListTitle')/项


选择=标题,AreaRef /标题&安培;

<? blockquote> expand = AreaRef


这是一个供您参考的帖子。


http:// www .axioworks.com / 2018/02 / using-power-bi-with-sharepoint-data-the-ultimate-guide /


最好的问候,



Hi experts,

I have a lookup column with multiple selection. This makes it easier for the user, but means I cannot pull it through to Power BI for reporting.

I want to create additional columns that each point to one of the multiple selections – essentially breaking the one column out into several. These columns would be hidden to the user, and I can pull them into reporting. A visual example of what I want to do is below.

I do not know how to do this – presumably it would use calculated columns, but I don’t know what the formula would be.

Any thoughts?

Lookup with multiple entries

Hidden Column 1

If line 1 = not blank display line 1

Hidden Column 2

If line 2 = not blank display line 2

Hidden Column 3

If line 3 = not blank display line 3

Dubai

United Kingdom

Europe

Americas

Dubai

United Kingdom

Europe

Singapore

Singapore

Europe

Hong Kong

Europe

Hong Kong

解决方案

Hi,

SharePoint calculate column doesn’t support lookup column.

For this requirement, I would suggest you use Odata feed to retrieve SharePoint list data.

Sample endpoint: (AreaRef is multiple lookup column, Title is show field of AreaRef column)

/_api/web/lists/getbytitle('SharePointListTitle')/items?


select=Title,AreaRef/Title&


expand=AreaRef

Here is one thread for your reference.

http://www.axioworks.com/2018/02/using-power-bi-with-sharepoint-data-the-ultimate-guide/

Best Regards,

Lee


这篇关于将多个选择查找列分成多个列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆