powerbi

Average of Each months last date (MAX date) value

孤街浪徒 提交于 2020-01-14 03:34:07
问题 I am looking to calculate AVG OF EACH Month's last date (MAX date) value. Below is the sample data. Can you please someone help me with the DAX caluclations. Much appreciated. Please let me know if you need more information. Location DATE NAME VALUE P1 1/1/2019 0:00 ABC 12 P1 1/2/2019 0:00 ABC 4 P1 1/3/2019 0:00 ABC 50 P1 1/4/2019 0:00 ABC 8 P1 1/5/2019 0:00 ABC 35 ABC MaxDate value of JAN P1 1/1/2019 0:00 DEF 20 P1 1/2/2019 0:00 DEF 25 P1 1/3/2019 0:00 DEF 66 P1 1/4/2019 0:00 DEF 24 P1 1/5

How to Show last period (Fiscal Year) of sale, based on multi-filters report

被刻印的时光 ゝ 提交于 2020-01-13 07:07:18
问题 I tried create a dashboard based on fiscal year, with more Filters, like region, sales rep name, ... Example files avaliable on dropbox: https://www.dropbox.com/sh/l25kdz6enmg35yb/AABPuOk3kKOpfQdKDfRUcnX2a?dl=0 On my closest attempt, i tried this follow: Add one column on my data set, naming each period as distinct number, like: "17";"18";"19", due to deslocated fiscal year (april to march). Then create a measure: PREVIOUS CROP_YEAR = SWITCH(TRUE(); SELECTEDVALUE('dataset'[Crop-X])=16;

How to Show last period (Fiscal Year) of sale, based on multi-filters report

大兔子大兔子 提交于 2020-01-13 07:06:30
问题 I tried create a dashboard based on fiscal year, with more Filters, like region, sales rep name, ... Example files avaliable on dropbox: https://www.dropbox.com/sh/l25kdz6enmg35yb/AABPuOk3kKOpfQdKDfRUcnX2a?dl=0 On my closest attempt, i tried this follow: Add one column on my data set, naming each period as distinct number, like: "17";"18";"19", due to deslocated fiscal year (april to march). Then create a measure: PREVIOUS CROP_YEAR = SWITCH(TRUE(); SELECTEDVALUE('dataset'[Crop-X])=16;

How to Show last period (Fiscal Year) of sale, based on multi-filters report

僤鯓⒐⒋嵵緔 提交于 2020-01-13 07:06:08
问题 I tried create a dashboard based on fiscal year, with more Filters, like region, sales rep name, ... Example files avaliable on dropbox: https://www.dropbox.com/sh/l25kdz6enmg35yb/AABPuOk3kKOpfQdKDfRUcnX2a?dl=0 On my closest attempt, i tried this follow: Add one column on my data set, naming each period as distinct number, like: "17";"18";"19", due to deslocated fiscal year (april to march). Then create a measure: PREVIOUS CROP_YEAR = SWITCH(TRUE(); SELECTEDVALUE('dataset'[Crop-X])=16;

how to connect to Power BI API using non-interactive authentication?

萝らか妹 提交于 2020-01-13 05:08:08
问题 Coding in C#. I'm following this guide: https://azure.microsoft.com/en-us/documentation/articles/resource-group-authenticate-service-principal/#authenticate-service-principal-with-password---powershell%E2%80%8C%E2%80%8B But it is not working and it is not Power BI specific so I'm not sure exactly how to apply it to the Power BI API. In my attempt to connect to Power BI I am getting a 403 Forbidden response. var authenticationContext = new AuthenticationContext("https://login.windows.net/" +

Node js App integration with power bi rest Api

女生的网名这么多〃 提交于 2020-01-12 13:56:05
问题 Is there a way using power bi rest API in node js, I watched video ,Ran Breuer and Arina Hantsis were showing the demo here,Setting up and Getting Started with Power BI Embedded I want to achieve same but using node js, in our development environment we do not use c#. I found the Node SDK but it saying we no longer support node SDK,Node SDK Do I have to change development structure from Node js to c# in order to use power bi Rest API!! 回答1: If you want to achieve same, what Ran Breuer and

Node js App integration with power bi rest Api

佐手、 提交于 2020-01-12 13:53:32
问题 Is there a way using power bi rest API in node js, I watched video ,Ran Breuer and Arina Hantsis were showing the demo here,Setting up and Getting Started with Power BI Embedded I want to achieve same but using node js, in our development environment we do not use c#. I found the Node SDK but it saying we no longer support node SDK,Node SDK Do I have to change development structure from Node js to c# in order to use power bi Rest API!! 回答1: If you want to achieve same, what Ran Breuer and

DAX ALLEXCEPT to sum by category of multiple dimension tables

冷暖自知 提交于 2020-01-11 13:49:11
问题 I would like to calculate total by category. The category is in the dimension table. Here is sample file: DAX ALLEXCEPT total by category.pbix I have the following model: These are my expected results. Total by Color: I thought I could achieve expected results by the following measure: ALLEXCEPT_color = CALCULATE ( [Sales], ALLEXCEPT ( FactTable, -- surprisingly 'dim1' table in that place gives wrong results dim1[Color] ) ) Or alternatively using method suggested by Alberto Ferrari https:/

How to calculate cumulative Total and % in DAX?

拜拜、爱过 提交于 2020-01-10 04:21:06
问题 This might be very simple... I have the below summary table in Power BI and need to build a Pareto Chart, what I'm looking for is a way to create columns "D" and "E"... Thanks in advance! The Count from column "B" is a measure I've created in PBI based on multiple filters. I've already tried some Calculate/Sum/Filter type of expressions with no luck. My raw data looks like Image #2... I have the measures to build the summary table with the exception of column "I" - Running % - (for which I

Creating Relationships while avoiding ambiguities

丶灬走出姿态 提交于 2020-01-07 08:21:04
问题 I have a flat table like this, R# Cat SWN CWN CompBy ReqBy Department 1 A 1 1 Team A Team B Department 1 2 A 1 3 Team A Team B Department 1 3 B 1 3 Team A Team B Department 1 4 B 2 3 Team A Team C Department 1 5 B 2 3 Team D Team C Department 2 6 C 2 2 Team D Team C Department 2 R# indicates the RequestNumber, Cat# indicates the Category, SWN indicates the Submitted Week Number, CWN indicates the Completed Week Number, CompBy indicates Completed By, ReqBy Indicates Requested By, Department