general question
5 TopicsGrouping Values by Multiple Criteria in several Tables (DAX or Power Query and big Flat Table)
I have don’t this in the past with data from our ERP with Power Query when it was one big flat table. However, I am hitting a big wall trying to do this in Power BI with many related tables. I need to create some groupings in Power BI for tables and charts. I have looked at several examples, but most seem to have a less complicated data model. I had considered Power Query, but I need to kook at multiple related tables and did not want a massive flat table again. The DAX I saw was confusing and there seemed to be some cautions. I have 5-7 different groupings (A, B, C, D, E…). I have actual expense and budget tables. In order for an amount to be summed into one of the categories it must meet several criteria that are in different related tables. It must Be in a certain Account Rage Be in certain Cost Centers, Be a specific Project Type Output might look like this Category 2025 Actuals YTD 2025 Projection 2026 Budget 2027 Budget 2028 Budget A 14143 14134 326 3453 433 B 2356 354 3533 5353 3452 C 3423 3497 3534 4345 3455 D 2324 2345 3533 3535 5352 E 2567 2599 5632 3567 3572 I can create a single measure to do one category but, I am really after either a “real” table via Power Query or a DAX query. Below is an example a measure if I were creating category A as a single measure for Actuals. Help ang guidance from multiple angles would be appreciated. Thanks Alan For example, for Category A measure might look like this, unfortunately I need that as a “row” not a new column. A = VAR _Amount = CALCULATE ( SUM ( 'Actuals'[Amount4] ), KEEPFILTERS ( VALUE ( 'Account Relations'[Head Account] ) >= 50000 && VALUE ( 'Account Relations'[Head Account] ) <= 69999 && VALUE ( 'Account Relations'[Head Account] ) <> 56950 ), KEEPFILTERS ( VALUE ( 'Account Relations'[Account] ) <> 96910 && VALUE ( 'Account Relations'[Account] ) <> 96950 ), KEEPFILTERS ( VALUE ( 'Main Project Master File - PMF'[PMF Project Type] ) >= 30 && VALUE ( 'Main Project Master File - PMF'[PMF Project Type] ) <= 69 ), KEEPFILTERS( VALUE('Department Relations'[Cost Center]) >=10 && VALUE( 'Department Relations'[Cost Center]) <= 20 ) ) RETURN _AmountSolved1.2KViews1like5CommentsNeed to create DAX for last 3 month visible in clustered column chart
Hi Experts, I want to create a dax to display the last 3 months when we select any month from the slicer. if not selected then it will display all month data in clustered column chart. Monthname is a slicer (MonthName = FORMAT([Date],"MMMM")) //text type Monthyear is a X axis in visual (MonthYear = FORMAT([Date], "MMM-yyyy")) //text type Tried this measure but no luck: Last3Months = VAR HasMonthSelected = ISFILTERED ( 'CustomCalendar'[MonthName] ) VAR EndDate = CALCULATE ( MAX ( 'CustomCalendar'[Date] ), ALLSELECTED ( 'CustomCalendar' ) ) VAR SelectedDate = MAX ( 'CustomCalendar'[Date] ) VAR Result = SWITCH ( TRUE (), HasMonthSelected && SelectedDate IN DATESINPERIOD ( 'CustomCalendar'[Date], EndDate, -3, MONTH ), 1, HasMonthSelected, 0, 1 ) RETURN Result Please help me on this. Thanks DKSolved1.4KViews0likes8CommentsGroup by 2 columns
Hello, I need help. I've a table "saisie" and a table "places". In the table "places", I've a column that contain a count of records of table "saisie". This result give me the same value on each row and it's normal. Now I need to group this result by 2 columns of the table "places". How to do a group by 2 columns? Thanks for your help Regards556Views0likes1CommentChange bar chart column for 3 higher value
Hi guys, I have a bar chart that represent risks. I want to change the color for the 3 higher risk where the value is the most elevated. I don't want to change color based to static value like >100 but by 3 top higher values of my chart How can i do this? Many Thx for help813Views0likes1CommentYOY Growth starting from 100%
Hi Guys My team is preparing a Dashboard to demonstrate the YOY growth of the Net Fee Collected from different clients over the past 5 years. Since the dates are scattered in 3 different columns and cannot be filtered in one column we cannot use the time intelligence formulas. Therefore we have used the following revenue measures. 1. This Year NFC- TY NFC (In Lacs) = var MaxYear = MAX('Net Fee Collected'[Fiscal_Year]) //var year=[YTD] return CALCULATE(SUM('Net Fee Collected'[NFC YTD(In Lacs)]),FILTER('Net Fee Collected','Net Fee Collected'[Fiscal_Year] =MaxYear),FILTER('Net Fee Collected','Net Fee Collected'[Is CGP] = "Yes")) 2. Previous Year NFC- NFC_PY = var MaxYear = MAX('Net Fee Collected'[Fiscal_Year]) var PreviousFY = LEFT(MaxYear,4)-1 & "-" & RIGHT(MaxYear,4)-1 return CALCULATE([Total NFC],FILTER(ALLSELECTED('Net Fee Collected'),'Net Fee Collected'[Fiscal_Year] = PreviousFY)) 3. YOY growth %- YoY Growth % = DIVIDE(([TY NFC (In Lacs)]-[NFC_PY]),[TY NFC (In Lacs)]) YOY Growth % graph is automatically taking the stating year value as 100% growth. How can we make it 0%?1.1KViews0likes2Comments