'need help'
26 TopicsTop10 + Others with duplicate values
Hi, In the past I was able to create a calculated column that made Top10+Others working Sales Top10+Others = VAR RankProductbySales = RANKX(All('Product'), [Sum Sales Quantity] ,,DESC) RETURN IF (RankProductbySales<=10,'Product'[productname], "Others") That worked. But it worked because productname was unique in the table. I recreated this in the attached pbix. Table Product_V1 connected to Sales and as you can see in the visual with column 'Product_V1' it gives the right result. But I created a second version, table Product_V1. This reflects my current challenge, wehereby this Product_v2 is just very simplified. The issue is that I now want to Rank by owner. But an owner can have multiple products. In other words, the owner is not unique in the product table. How do I do this? If you look at the left visual with column 'owner' it is rnked on product. But I want it to be ranked as shown in the left visual with column 'owner'. Whereby it contains three lines: Rob with 1125, John with 700 and Others with 1225. https://www.dropbox.com/scl/fi/acmlmt4cvgmrd9ckj1en8/TopN-Others_2.pbix?rlkey=n5unb6h8hfq6uh8y1ulnbekp3&st=qrbchmbt&dl=0 https://www.dropbox.com/scl/fi/05u3t9mwp73l9op2ys7gi/TopN-Others_2.xlsx?rlkey=04cjme3h457abgyjfpw2omy5q&st=zzlz25so&dl=0 Hope someone can help. lbendlin bhanu_gautam Regards RonSolved694Views0likes2CommentsRefresh Error
Hello Everyone, I am facing and shcedule refresh error. I am getting an below message. Could you help me undertsand and resolve the issue. Thanks. An error occurred while processing the data in the semantic model. Refresh failed: Pricing Trend has failed to refresh. Failure details: The last refresh attempt failed because of an internal service error. This is usually a transient issue. If you try again later and still see this message, contact support. {"error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","pbi.error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"<ccon>The given credential contains a property with a null value. Data source kind: SQL. Property name: Username. </ccon>"}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}}],"exceptionCulprit":1}}} Table: Pricing Trend.Solved1.7KViews0likes3CommentsShow last N months based on FiscalYearMonth slicer selection without calendar/date table
My requirement Ex-1 When the user select a value say 202501 from slicer "FiscalYearPeriodCd" which is a text data type. The table below should display last 13 months . Ie from 202401 to 202501. ---Last 13 months Ex-2 When the user selects "202411" , the table below should display SalesUSD from 202311 to 202411 .---Last 13 months. .Unfortunately i have a calendar table but the calendar table and fact table are related using someother key and not a datekey as per the business requirement and hence i cannot change it.Also in my date table , i have the date repeated twice.One is for US and another for Non US due to fiscal calculation.Hence i cannot use datesinperiod , dateadd or other date related functions.Hence the only option is to use FiscalYearPeriodCd. Raw data below SalesUSD FiscalYearPeriodCd 534132759.5 202201 1557801979 202202 695221259.1 202203 813135024.7 202204 832097591.8 202205 755491149.2 202206 848978369.6 202207 831567295.5 202208 907314200.6 202209 822103615.4 202210 674213875.8 202211 -2879970782 202212 859510773.8 202301 908174754.8 202302 856401757.6 202303 864263784 202304 880142006.9 202305 861088774.2 202306 -2353615032 202307 968984985.4 202308 -1857687494 202309 868514132.3 202310 -66961618.2 202311 1317854317 202312 1060522633 202401 1011795775 202402 829441979.7 202403 1100402094 202404 1064195484 202405 1138271467 202406 1898901.5 202407 754629775 202408 130722055.9 202409 1437834704 202410 912161100.4 202411 167628959.9 202412 486353211.6 202501 98759203.23 202502 Expected output for Ex 1 slicerselection = 202501 MgmtRateUSD FiscalYearPeriodCd 1060522633 202401 1011795775 202402 829441979.7 202403 1100402094 202404 1064195484 202405 1138271467 202406 1898901.5 202407 754629775 202408 130722055.9 202409 1437834704 202410 912161100.4 202411 167628959.9 202412 486353211.6 202501 expected output for ex 2 - slicerselection = 202411 MgmtRateUSD FiscalYearPeriodCd -66961618.2 202311 1317854317 202312 1060522633 202401 1011795775 202402 829441979.7 202403 1100402094 202404 1064195484 202405 1138271467 202406 1898901.5 202407 754629775 202408 130722055.9 202409 1437834704 202410 912161100.4 202411 Thank you so much in advance.Solved751Views0likes3CommentsNeed to fix issue in Create Semantic Layer by providing sql query
Hello community, Currently i am creating semantic layer based on SQL query and database details i have. for this i am using below API POST : https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/semanticModels RequestBody : { "displayName": "SalesModel1", "description": "SalesModel1", "definition": { "parts": [ { "path": "model.bim", "payload": "<base64>", "payloadType": "InlineBase64" }, { "path": "definition.pbism", "payload": "<base64>", "payloadType": "InlineBase64" }, { "path": ".platform", "payload": "<base64>", "payloadType": "InlineBase64" } ] } } For "model.bim" part i am converting below JSON into base64 { "name": "Cognos Semantic Model", "compatibilityLevel": 1550, "model": { "culture": "en-US", "dataAccessOptions": { "legacyRedirects": true, "returnErrorValuesAsNull": true }, "defaultPowerBIDataSourceVersion": "powerBI_V3", "sourceQueryCulture": "en-US", "tables": [ { "name": "product_category", "partitions": [ { "name": "Applications", "mode": "directQuery", "source": { "type": "query", "query": "SELECT id, name, quantity FROM product_category", "dataSource": "SqlDataSource" } } ], "annotations": [ { "name": "PBI_ResultType", "value": "Table" } ] } ], "dataSources": [ { "name": "SqlDataSource", "type": "structured", "connectionDetails": { "server": "<server-endpoint>", "database": "<databse_name>", "authentication": { "type": "Basic", "username": "<username>", "password": "<password>" } } } ], "cultures": [ { "name": "en-US", "linguisticMetadata": { "content": { "Version": "1.0.0", "Language": "en-US" }, "contentType": "json" } } ], "annotations": [ { "name": "PBI_QueryOrder", "value": "[\"Applications\"]" }, { "name": "__PBI_TimeIntelligenceEnabled", "value": "1" }, { "name": "PBIDesktopVersion", "value": "2.137.1102.0 (24.10)" }, { "name": "PBI_ProTooling", "value": "[\"DevMode\"]" }, { "name": "TabularEditor_SerializeOptions", "value": "{\"IgnoreInferredObjects\":true,\"IgnoreInferredProperties\":true,\"IgnoreTimestamps\":true,\"SplitMultilineStrings\":true,\"PrefixFilenames\":false,\"LocalTranslations\":false,\"LocalPerspectives\":false,\"LocalRelationships\":false,\"Levels\":[\"Data Sources\",\"Shared Expressions\",\"Perspectives\",\"Relationships\",\"Roles\",\"Tables\",\"Tables/Columns\",\"Tables/Hierarchies\",\"Tables/Measures\",\"Tables/Partitions\",\"Tables/Calculation Items\",\"Translations\"]}" }, { "name": "__TEdtr", "value": "1" } ] } } but i am getting below error { "status": "Failed", "createdTimeUtc": "2025-02-10T07:38:03.1846582", "lastUpdatedTimeUtc": "2025-02-10T07:38:20.4501583", "percentComplete": null, "error": { "errorCode": "Dataset_Import_FailedToImportDataset", "message": "Dataset Workload failed to import the dataset with dataset id 00000000-0000-0000-0000-000000000000. Failed to save modifications to the server. Error returned: 'Power BI does not support query partition sources that reference structured data sources. In table '<oii>product_category</oii>', the partition '<oii>Applications</oii>' uses a query partition source that references the structured data source 'SqlDataSource'. To fix this issue, either replace the query partition source with an M partition source or modify the query partition source to reference a provider data source instead of the structured data source.\r\n'." } }Solved2.5KViews0likes4CommentsAssistance Required for Resolving URL Character Limit Issue in Paginated Report
Hi Team, I hope this email finds you well. I am reaching out for assistance in resolving an issue I am encountering with a paginated report. The report is designed such that, after selecting multiple parameters, clicking on the Reject column record redirects to a child report. However, an error is displayed: "The report parameter list exceeds the limit of 2040 characters. Please reduce the selected values for Zone 1, 2, 3 WO# dropdown." To provide more context, I have attached the expression currently being used to achieve the functionality: =IIF(LEN(Globals!ReportServerUrl + "?%2fBRS+Singapore%2fPA+Reports%2fTIJ4%2fSGP_Falcon%2fProduction+Reports%2fReject_Pen_summery_yield&rs:Command=Render&rc:Toolbar=False&StartDate= " & Parameters!parstartdate.Value & "&EndDate= " & Parameters!parenddate.Value & "&ShiftList= " & Join(Parameters!parshiftinclude.Value, ",") & "&moduleky= " & Fields!MODULE_DIM_KY.Value & "&pruntype= " & Join(Parameters!paruntype.Value, ",") & "&Zone1Wo= " & Join(Parameters!Zone1Wo.Value, "&Zone1Wo=")) <= 2083, "javascript:void(window.open('" + Globals!ReportServerUrl + "?%2fBRS+Singapore%2fPA+Reports%2fTIJ4%2fSGP_Falcon%2fProduction+Reports%2fReject_Pen_summery_yield&rs:Command=Render&rc:Toolbar=False&StartDate= " & Parameters!parstartdate.Value & "&EndDate= " & Parameters!parenddate.Value & "&ShiftList= " & Join(Parameters!parshiftinclude.Value, ",") & "&moduleky= " & Fields!MODULE_DIM_KY.Value & "&pruntype= " & Join(Parameters!paruntype.Value, ",") & "&Zone1Wo= " & Join(Parameters!Zone1Wo.Value, "&Zone1Wo=") + "'))", "") The main concern is ensuring that even after selecting "Select All" for the parameters, the report does not exceed the character limit and continues to function without errors. If this issue cannot be resolved due to known limitations, I would appreciate any suggestions for alternative approaches. Specifically: Is there a way to handle this within the report itself, avoiding the need to jump to a child report? After publishing to Power BI Service, can any modifications be made to overcome this limitation? Are there any other workarounds to ensure that selecting "Select All" does not lead to an error? Looking forward to your valuable suggestions and assistance! Thank you. Best regards, Heena Kousar2KViews2likes6CommentsNeed to establish relation between tables in create semantic API for PowerBi Service
Currently i am able to create semantic layer through fabric API (https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model?tabs=HTTP&tryIt=true&source=docs#code-try-0) In above API i am passing request body which can contain multiple tables definition(in Base64 Format) but currently i am unable to provide relationships among those tables. can someone please help on how to provide relationships among provided tables in request body in create semantic API Thanks in advance !!Solved1KViews0likes2CommentsCan we build a table in calculated filed like attached image?
Hi, I need to build the like below: Can we build the above table? How can we build the fileds at Left Side like Gross Sales, REBATE, RXs etc?means Left Side columns are measures, and should show under PRODUCT SET DESCRIPTION collumn. So, can we create column like this?Solved737Views0likes2CommentsPower BI Monitoring Implementation Issues with Fetch Catalog and Fetch Graph Scripts
I am currently implementing Power BI monitoring as outlined by Rui Romano. My goal is to extract logs and store them on my local system using PowerShell scripts, specifically the 'Fetch Activity', 'Fetch Catalog', 'Fetch DatasetRefresh', and 'Fetch Graph' scripts provided in the GitHub Repository i.e. public repository. So far, I have successfully executed the 'Fetch Activity' and 'Fetch DatasetRefresh' scripts and have connected the extracted data from these activities to the Power BI template file available in the GitHub repository at the end of the page(Ref Image Steps to Execute PBIMonitoring ). However, I am encountering issues with the 'Fetch Catalog' and 'Fetch Graph' scripts. For the 'Fetch Catalog' script, I am receiving a "missing braces" error(Ref Image Error_On_FetchCatalog), and even after resolving that issue, I am unable to connect the generated data from the catalog to the Power BI template due to missing workspace-related information. Regarding the 'Fetch Graph' script, I am facing a "403 Forbidden" error (Ref Image Error_on_FetchGraphps1) , which appears to be related to the permissions assigned to the service principal. I have already added the following permissions to the service principal(Ref Image ServicePrincipalPermissions) Could you please provide assistance with the 'Fetch Catalog' and 'Fetch Graph' scripts, as well as guidance on the necessary permissions that need to be added to the service principal? Any help or suggestions would be greatly appreciated.707Views0likes1CommentHow Connect User from One server to another server for viewing Report
As In our work place we have 2 server as in one server has Bi reporting service and the other server has active directory where the groups and users are So intially want to connect the other server to first server by the same domain name as it replicate the active directory in first domain so other server people where they are added in active directory can see the report using there credentials is it possible Thanks in AdvanceSolved1.7KViews0likes6CommentsSell Through DAX measure
Hello everyone! I need some help with DAX. Basically, I have to calculate SELL_THROUGH of the stores (CD_LOJA_SAP) and skus (CD_EAN) where [SELLOUT] AND [POSICAO_ESTOQUE] are not blank ou zero. Here is an example, using CD_LOJA_SAP: 1. How it is at the moment: 2. How I want it to be: As you can see, the measure works correctly for the rows in the table. However, the issue lies with the "Total" row. I need it to exclude stores 1 and 2. My model: DAX measures: SELL_THROUGH = VAR MaxData = [MAX_DT_ESTOQUE] VAR Estoque = [POSICAO_ESTOQUE] VAR Sellout = [SELLOUT] VAR Estoque_Sellout = [POSICAO_ESTOQUE_SELLOUT] VAR ST = SWITCH( TRUE(), ISBLANK(Sellout) || ISBLANK(Estoque), BLANK(), DIVIDE(Sellout, Estoque_Sellout) > 1, 1, DIVIDE(Sellout, Estoque_Sellout) ) RETURN ST MAX_DT_ESTOQUE = VAR MaxData = CALCULATE(MAX(fEstoque[DT_ESTOQUE]), ALL(fEstoque),fEstoque[CHAVE_COLECAO_COMERCIAL] = SELECTEDVALUE('Coleções'[DS_COLECAO])) RETURN MaxData POSICAO_ESTOQUE = VAR MaxData = [MAX_DT_ESTOQUE] VAR PosicaoEstoque = CALCULATE( SUM(fEstoque[QT_ESTOQUE]), fEstoque[DT_ESTOQUE] = MaxData ) RETURN PosicaoEstoque SELLOUT = VAR MaxData = [MAX_DT_ESTOQUE] RETURN CALCULATE( SUM(fSales[VOLUME]), fSales[DT_PEDIDO] <= MaxData ) POSICAO_ESTOQUE_SELLOUT = [SELLOUT] + [POSICAO_ESTOQUE] Could anyone please help me? Thank you so much!Solved1.3KViews0likes1Comment