在 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.

現在當您開啟 Power BI for iPhone 應用程式上的掃描器並掃描條碼時,您會在報表清單中看到這份報表。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