powerbi

Weird behavior on Power BI Service: Visual level filter automatically resets to “All” on specific page only

僤鯓⒐⒋嵵緔 提交于 2019-12-25 04:06:08
问题 My report has several pages showing data of a survey. I have various metrics, each fetching data from different/individual tables. All have filters applied on "key" column, as it should "not be null". Everything works fine on power bi service, except one matrix for which the key filter automatically resets to "all" instead of "not null" upon publishing to Power BI service. Any sort of help will be appreciated. 来源: https://stackoverflow.com/questions/53939831/weird-behavior-on-power-bi-service

count distinct values in one table based on values in another table power bi

隐身守侯 提交于 2019-12-25 03:53:07
问题 I would like to do a distinct count of values on one table based on fields defined in another table, i am able to achieve this easily using SQL statements but i am unable to convert it into DAX as is used on power BI measures. Here is the SQL that i would use to count; SELECT COUNT (DISTINCT F.TAXPAYER_ID) FROM DIM_TAXPAYER D, FACT_REGISTRATION F WHERE D.TAXPAYER_ID = F.TAXPAYER_ID AND D.IS_MIGRATED = 'Y' AND D.IPAGE_PROCESSED = 'Y' OR D.IS_MIGRATED = 'N'; Basically i want to count distinct

updating measure calculation to apply OR logic in DAX

扶醉桌前 提交于 2019-12-25 02:55:36
问题 I'm trying to have my dimensions filter a calculation using the OR logic. I have 3 tables: 1 Fact and 2 Dimensions. SalesFact: SalesID, ProductID, StoreID ProductDim: ProductID, ProductName StoreDim: StoreID, StoreName This is the measure: Total SalesId = CALCULATE(DISTINCTCOUNT(SalesFact[SalesID]) ) This works good, but I want it to filter on either dimension selected, something like this: EVALUATE SUMMARIZECOLUMNS ( FILTER( SalesFact, SalesFact[ProductId]=15257 || SalesFacts[StoreId]=19732

Override Slicer Filter Context in Chart (To Show Fuller X-Axis)

天大地大妈咪最大 提交于 2019-12-25 02:29:11
问题 Imagine I have a fact table with sales spanning 3 years (2016-2018). I have a chart showing sales by month (36 points on the X-Axis). I have a slicer selection to Year = 2018, and Month = June. Is it possible, with a measure, to show on a chart, the trailing 6 months from the slicer selection? In other words, with the slicer still set to Year = 2018 and Month = January, can the chart display 6 points (the trailing 6 months)? How would this be accomplished? 回答1: The approach I would use in

200 ok response from power bi rest api but no json

删除回忆录丶 提交于 2019-12-25 01:53:02
问题 I am trying to call power bi rest api using adal.js. Token is working fine for authorization, response also coming 200 ok but no result is showing. Here is my code I am using and the url trying to access: https://api.powerbi.com/v1.0/myorg/groups/{groupid}/reports/{reportid} var headers = new Headers(); var bearer = "Bearer " + token; headers.append("Authorization", bearer); headers.append("Content-Type", "application/json"); headers.append("Accept", "None"); var options = { method: "GET",

How to pick up column by given parameters and then sum-up the column total in Power BI

杀马特。学长 韩版系。学妹 提交于 2019-12-25 01:25:01
问题 I've got a table like below. I would like to pickup the column first by given parameters then sum up the total of the column. For example, by given Parameter of SGD , I would like to sum-up the total amount of column SGD. Date SO NO. AUD SGD HKD 7/1/2019 SO1 100 105.17 545.74 8/5/2019 SO2 130 122.01 691.13 9/9/2019 SO3 160 150.32 853.55 9/15/2019 SO4 180 169.11 960.25 Thanks 回答1: One way to achieve this is to add a new disconnected table Currencies with one column Currency and values AUD ,

Visualisation in power BI

安稳与你 提交于 2019-12-25 01:22:23
问题 I had a trouble visualizing my output in Power BI. I have imported more than 1500 CSV files but every time I visualize it, it only shows 10 CSV files that are randomly selected among the 1500 CSV files. How can I see all 1500 CSV visualization at once rather than just 10 CSSV? If it's not possible then I wanted to know how is 10 CSV files selected out of 1500 CSV files? Is there any calculation involved or is it just a random selection that Power BI dose on its own? In image4 I would like to

work space specific variable to use in power bi query dynamically

泪湿孤枕 提交于 2019-12-25 01:12:38
问题 Use Case: We are getting app insight custom event data from app insight and publishing it in power bi using power bi queries. We have 3 environments (Dev,PreProd and Prod). We have created 3 work spaces for each environments. Question: The queries use application insight App ID which is hardcoded for now. Is there a way to pass the App ID dynamically since it will be different for different workspace/environments. 回答1: I think what you want to use is parameters. Guy in a Cube did a video

How to calculate conditional running total in power query (Excel 2016)?

不羁的心 提交于 2019-12-25 00:27:01
问题 Is it possible to calculate conditional based running total in power query? I need to add numbers(cumulative sum) based on the group. See the image attached. Currently I'm using a formula to calculate that in sheet and loading it to query editor. Is there any other logic to achieve that in power query (if possible, without indexing : because index took too much time to load). 来源: https://stackoverflow.com/questions/49442192/how-to-calculate-conditional-running-total-in-power-query-excel-2016

Access groups and reports of power bi through Postman

牧云@^-^@ 提交于 2019-12-25 00:23:30
问题 I am getting an access token through post man as shown from image below Unless the scope is wrong which i think is not i should be able to access reports and groups of power BI, just by passing the generated token as header in the request After passing the token i get 403 I am not sure what is wrong with my request although i do know 403 means some rights are missing. Any suggestions ? Thank you Now i am getting this This is what i think might be the issue but i am not sure, ConsentType