在适用于移动应用的 Power BI Desktop 中标记条形码Tag barcodes in Power BI Desktop for the mobile apps

在 Power BI Desktop 中,你可以针对列进行数据分类,以便 Power BI Desktop 知道如何处理报表中可视化对象的值。In Power BI Desktop, you can categorize data in a column, so Power BI Desktop knows how to treat values in visuals in a report. 此外还可将列分类为条形码You can also categorize a column as Barcode. 当你或你的同事通过 iPhone 使用 Power BI 应用扫描产品上的条形码时,你将看到所有包含此条形码的报表。When you or your colleagues scan a barcode on a product with the Power BI app on the iPhone, you see any report that includes that barcode. 在移动应用中打开报表时,Power BI 将自动筛选报表中与该条形码相关的数据。When you open the report in the mobile app, Power BI automatically filters the report to data related to that barcode.

  1. 在 Power BI Desktop 中切换到数据视图。In Power BI Desktop, switch to Data View.
  2. 选择具有条形码数据的列。Select a column with barcode data. 请参阅以下受支持的条形码格式列表。See the list of supported barcode formats below.
  3. 在“建模”选项卡上,选择“数据类别” > “条形码”。On the Modeling tab, select Data Category > Barcode.

    数据类别列表

  4. 在“报表”视图中,将此字段添加到要通过条形码筛选的视觉对象。In Report view, add this field to the visuals you want filtered by the barcode.
  5. 保存报表并将其发布到 Power BI 服务。Save the report and publish it to the Power BI service.

现在当你打开 iPhone 的 Power BI 应用上的扫描器并扫描条形码时,你将在报表列表上看到此报表。Now when you open the scanner on the Power BI app for iPhone and scan a barcode, you see this report in the list of reports. 当你打开报表时,将按你扫描的产品条形码筛选报表的视觉对象。When you open the report, its visuals are filtered by the product barcode you scanned.

受支持的条形码格式Supported barcode formats

如果你可以将以下条形码标记在 Power BI 报表中,Power BI 将可识别它们:These are the barcodes Power BI recognizes if you can tag them in a Power BI report:

  • UPCECodeUPCECode
  • Code39CodeCode39Code
  • A39Mod43CodeA39Mod43Code
  • EAN13CodeEAN13Code
  • EAN8CodeEAN8Code
  • 93Code93Code
  • 128Code128Code
  • PDF417CodePDF417Code
  • Interleaved2of5CodeInterleaved2of5Code
  • ITF14CodeITF14Code

后续步骤Next steps