power pivot
29 TopicsConnect Power BI with SQLite and Primavera P6 | Vahid Doustimajd
Connect Power BI with SQLite and Primavera P6 Primavera P6 is the most potent, practical and one of the main software that experts use in Project Management for scheduling, and in that field, reports and dashboards are critical. The P6 Standalone has an SQLite database, and Power BI does not have a Certified Connector for the SQLite, so in this meeting, I'll explain how to connect Power BI with SQLite and Primavera to create a report. Agenda: Introductions (5 mins) Presentation (55 mins) Q&A session (15 mins) About Vahid Doustimajd: He is a Microsoft Certified Trainer and technophile person with plenty of enthusiasm to look for and find smart solutions. His background is in project management, and He hase spent most of my career in related areas of the profession. Most recently, though, driven by his passion for Excel, VBA, and preparing dashboards, He decided to change his career to work as a Power BI Developer and Data Analyst. Power BI addict, blogger, PBI Community Super User, User Group Leader, and learner. This event is online. You may need to install Zoom: https://zoom.us/download Space is limited so reserve your seat. Contact with Vahid: LinkedIn: https://www.linkedin.com/in/vahid-dm/ Members participating in Meetup Live events must be respectful in interactions with people and in content posted on the platform.405Views0likes1CommentNote - this is a power pivot question. Can't get percentage of cases to work correctly
PLease note this is a power pivot question, not power BI I use a dynamic formula in power pivot where the user can choose the calculation they want to see. I use the switch function for that. One of the calculations I want to use is the precentage of cases. For example we might be looking at cases by specialty and Specialty A has 25% of the cases and Specialty B had 13%, etc. This is the formula I am using: Percent of Cases:=format(divide([Cases],CALCULATE([Cases],ALLSELECTED(Data2)),0),"#0%;(#0%);-") This formula works fine in power BI, but not power pivot. I have tried this also Percent of Cases:=format(divide([Cases],CALCULATE([Cases],ALLSELECTED(Data2),all(Specialties)),0),"#0%;(#0%);-") But all of the Specialties come out 100%Solved1.1KViews0likes7CommentsChallenge with Month-Year filtering/order without creating new
If I am correct, this is more specific to Power Pivot (where my data are located) and not PBI where this maybe is not issue. I have dim table "plan per employee" for each quarter. In this plan, I would like to count added new customers to the the plan during quarter and to show it per employee by quarter/by month by correct month order. Issue I have, and don't know how to bypass it without to create new dim table with Month-Year (I already have one dim Month-Year which is filtering dim Date for many other calculation and cannot filter "plan per employee with active connection): How would I be able to count added customers per quarter and show it in correct month order with the already created Monht-Year table? Once I created new DimTable Month-Year I can simply do OrderB in data model and as this table directly filter "plan per employee" I don't have any issues. Would this somehow be possible with already existing "old" Month-Year table with inactive connection in order to decrease number of Dim Tables? for now I have simply calculation COUNTA([DateAdded]), i tried with some DAX, but i am lost... Thank you to anyone who could help me out...Solved582Views1like2CommentsPowe Query - How do get the ttl count of the column is >0?
Hi All, i have a table as follow and would like to add a column custom column (TTL Item as follow) in power query that counts all the rows that are >= 1, i have found multiple formulas but they didn't calculate correctly. Can you please help? Name Apple Banana Grapes TTL Item John 1 2 2 Mary 2 1 David 1 3 4 3 Tom 1 1 2Solved617Views0likes2CommentsPower Pivot - Calculated Column - How to find the 2nd minimum value based on other column groups
I'm having trouble creating a Calculate Column in Power Pivot. I have a table that shows bid results from multiple suppliers for multiple items and divisions. Through research I've been able to figure out the DAX formula for the minimum bid (by Division, by Item). =CALCULATE(MIN(Table1[Bid Cost]),ALLEXCEPT(Table1,Table1[WAREHOUSE / DIVISION],Table1[ITEM NAME])) I was also able to figure out the percent difference based on the lowest bid. =(Table1[Bid Cost]-CALCULATE(MIN(Table1[Bid Cost]),ALLEXCEPT(Table1,Table1[WAREHOUSE / DIVISION],Table1[ITEM NAME])))/Table1[Bid Cost] I'm now being asked if I can do the same for the 2nd lowest bid (by Division, by Item) to place in a Pivot Table for when we make negotiation calls. I've been looking for a couple days through the forum and google, and cannot seem to find an answer for the 2nd lowest value Calculated Column. In Excel, the formula would be: 2nd Lowest Bid =SMALL($D$5:$D$13,2) % From 2nd Lowest Bid =(D5-SMALL($D$5:$D$13,2))/D5 Here is my data sample. I apologize, I'm trying to figure out how to attached the sample data file, but my OneDrive and GooglDrive is blocked by IT security.1.6KViews0likes5CommentsCombining two tables in a pivot chart / calculating SUM table 2 based on row label of table 1
Hey everybody, I assume this shouldn't be a big deal but I've already spend hours on this and I'm not able to figure it out on my own. I've two tables which I'd like to combine in a pivot chart, including claculations between both tables. I'd like to have a pivot chart, showing: x-axis: products (working ✔️) y-axis (main): Distinct count of serial numbers of serviced products (working ✔️) y-axis (secondary): Values on x-axis (main) in relation to build products (not working ❌) The example file can be found here: example_combine_two_tables_in_pivot_chart.xlsx Input data (the two tables) - worksheet "Input_data" table "tbl_build_products" - which products where build in which year and in which amount (multiple entries, not aggregated by year / product) Product build year amount of products build A 2020 1 B 2020 1 C 2020 2 A 2020 2 B 2020 3 C 2021 3 A 2021 4 B 2021 4 C 2021 5 A 2021 5 table "tbl_serviced_products" - which products where serviced when (multiple entries per product and serial number possible) Product serial number service year A S1 2020 B S2 2020 C S3 2020 A S1 2021 B S2 2021 C S6 2021 A S7 2020 B S8 2020 C S9 2020 A S10 2020 B S2 2021 C S12 2021 A S13 2021 B S14 2021 C S15 2021 A S16 2020 B S17 2020 C S18 2021 current data model I've marked the columns which contain identical values. How it looks like at the moment - worksheet "Pivot_table_chart" blue bars = Distinct count of serial numbers of serviced products (working ✔️) orange bars = Instead, here I'd like to show the values on x-axis (main) in relation to build products (not working ❌). Currently, the orange bars are representing the sum of build products in total, not according to the corresponding row labels. Underlying, there's a measure which is currently summing column "amount of products build" in table "tbl_build_products". This measure looks like this: =SUMX(VALUES(tbl_build_products[amount of products build]);[Sum of amount of products build]) What I'm trying to achieve (next steps) Change measure in a way that I'm getting the sum of column "amount of products build" in table "tbl_build_products" but using the row labels as a kind of filter Calculate the percentage of "Distinct Count of serial number" in relation to all build products of the same product (see Nr. 1) Instead of the orange bars, show the percentage value of Nr. 2 as a line diagram on the secondary y-axis I'm open to other ideas to achieve my goal. I'm looking forward to your assistance! Thanks 🙂 edit I've created another table where I've used regular excel formulas to show what I'm trying to achieve in the end. My problem is that the real dataset is more complicated and the helper column "helper_column_count_distinct" I've inserted into "tbl_serviced_products" (worksheet Input_data) only works as long as all entries are valid. As soon as I start filtering those entries in a pivot chart using another column, the values in the helper column wouldn't be correct anymore. That's why I'm trying to make it work in a way where I can use the full power of a pivot chart. Here is the updated example file: example_combine_two_tables_in_pivot_chart_2.xlsx Input tbl_service_products with helper column Product serial number service year helper_column_count_distinct A S1 2020 0,5 B S2 2020 0,3 C S3 2020 1 A S1 2021 0,5 B S2 2021 0,3 C S6 2021 1 A S7 2020 1 B S8 2020 1 C S9 2020 1 A S10 2020 1 B S2 2021 0,3 C S12 2021 1 A S13 2021 1 B S14 2021 1 C S15 2021 1 A S16 2020 1 B S17 2020 1 C S18 2021 1 Mockup end result using regular excel formulas - worksheet "input_combined" tbl_input_combined product build products amount total serviced products distinct serial number rate of serviced products A 12 5 42% B 8 4 50% C 10 6 60% This results in this pivot table / chart (that's basically what I'd like to achieve without using a helper column and regular forumas):Solved1.3KViews0likes5CommentsRow Subtotal of Measure in Pivot table is empty
Dear Community, I am strugling to understand and fix the issue of empty subtotals for the measures I created in the Power Pivot model. Please see below the view of the Pivot table: The YoY measure returns same week previous year sales value (eg. Actual Booking in week 2 of year 2023 ($623K) are reflected as YoY Actual Bookings for week 2 of year 2024). YoY measure synthax: YoY:=CALCULATE([Actual Bookings], (FILTER(ALL(T_Calendar), T_Calendar[Fiscal Year]=IF(HASONEVALUE(T_Calendar[Fiscal Year]), VALUES(T_Calendar[Fiscal Year]))-1&& T_Calendar[Fiscal Week]=IF(HASONEVALUE(T_Calendar[Fiscal Week]), VALUES(T_Calendar[Fiscal Week]))))) Could you please advise why the measure is present in the row of the Pivot table for each week but not visible in Subtotal while other rows in Pivot table are there in Subtotal? What should I do to fix it? Thank you in advance!812Views0likes3CommentsSell out average
Hola, Ojalá me puedan ayudar. Soy nuevo en Power BI. Configuré relaciones entre tablas, entre ellas la tabla "WEEKS" y la tabla " Sellout Qty" Tabla WEEKS Tabla Sellout WK MTH WK STORE_ID SKU QTY WK14 WK14 11111111 9999 5 WK15 WK15 22222222 8888 7 WK16 WK16 33333333 7777 1 .... .... Mi Pivot está confeccionada de tal manera que tengo en las columnas el MTH, las WEEKS y enseguida los valores. Quedando una vista así APR SKU WK14 WK15 WK16 9999 1 2 3 8888 1 2 3 9999 1 2 3 Ahora, con un campo calculado con power pivot cree la siguiente función que me suma segúnlas últimas 4 semanas desde que creo el reporte: =CALCULATE(SELL_OUT[Sum of SELLOUT_QTY];SELL_OUT[WEEK]="WK"&(WEEKNUM(TODAY())-1) || SELL_OUT[WEEK]="WK"&(WEEKNUM(TODAY())-2) || SELL_OUT[WEEK]="WK"&(WEEKNUM(TODAY())-3) || SELL_OUT[WEEK]="WK"&(WEEKNUM(TODAY())-4)) Si bien está sumando correctamente, la forma en que lo estoy mostrando básicamente me está replicando la misma data que la del sell out en esas semanas. Me ayudan por fa? Además de sumarlas me gustaría sacar su promedio.728Views0likes1CommentDAX + LAMBDA and share to Service
It would be nice to be able to write LAMBDA functions (like you can in Excel now) and be able to publish to the service. Then, anyone with rights could pull those functions down and reuse as necessary. Power BI and Fabric has a lot of really awesome development features, but most folks may not be that savvy on best practices and may not have the ability to install all of the pro tools available. A use case for this would be a central BI team or workspace admin publishing a library of LAMBDA DAX functions that people could use for their own analysis. This could help with user adoption and learning. I realize that you could just use the measures built, but just getting the finished product all of the time just supports too much reliance on a centralized BI team or workspace admin. This LAMBDA could also be used in Power Pivot provided it is also built into Excel and the DAX called also is available in Excel.2KViews1like0Comments