User Profile
Lorenzo
Silver Contributor
Joined 9 years ago
User Widgets
Recent Discussions
Re: Pivot Table Yearly Sales Report Issue
is there a way to directly convert the date to year within the pivot table without having to separately convert the date to year first and then use the pivot table? Yes and this is auto. done by the PivotTable when the Dates are actual Date values, not your case where your [Date] column contains Text values In attached file your data has been formatted as Table named SalesData > Routed that table to Power Query to change the [Date] and [Due Date] field types to Date > Build a PivotTable from the query > Added the [Date] field to Rows ==> The Pivot auto grouped the [Date] by Year, Quarter, Month64Views1like0CommentsRe: Grouping
With the information you shared it's virtually impossible to answer your question... See if the following helps in the meantime Data formatted as Table named TableSource In column [Event ID] formula is (copied down): =IF( COUNTIF( SourceTable[[#Headers],[Group]]:[@Group], [@Group] ) = 1, [@Group], "" ) Filter [Event ID] unchecking (Blanks)45Views0likes0CommentsRe: I don't understand this logic with StockHistory function...
One addition to what mathetes said: you should investigate/learn how to use the LET function that allows - at least: To structure complex formulas To store intermediate results in variables that can be re-used. This instead of re-computing the same thing n times as you seem to do with (1.425/1000*VLOOKUP(MAX(IF....49Views2likes0CommentsRe: I don't understand this logic with StockHistory function...
There's no logic with STOCKHISTORY. The function pulls information, that's it. The logic you describe is yours Assuming you want to pull the last 10 days history for each stock/symbol in E4# and keep/display only the last day, one option: in F4: =LET( end_date, TODAY(), start_date, end_date -10, BYROW( E4#, LAMBDA(symbol, TAKE( STOCKHISTORY( symbol, start_date, end_date,, 0, 1 ), -1 ) ) ) )80Views1like3CommentsRe: How to check if a list is blank and then take action based on the result.
(Can't check this) variant: let Query_Begin = "SELECT [REC_NO], [FUND_CD], [SFUND_CD], [UNIT_CD] FROM [JRNL_CA]", lstFund_IsEmpty = List.IsEmpty( lstFund ), lstFY_IsEmpty = List.IsEmpty( lstFY ), criteria_Fund = if lstFund_IsEmpty = true then "" else " WHERE [FUND_CD] in (" & Text.Combine( lstFund, "," ) & ")", criteria_FY = if lstFY_IsEmpty = true then "" else " [FY_DC] in (" & Text.Combine( lstFY, "," ) & ")", Query_End = if ( lstFund_IsEmpty = true ) and ( lstFY_IsEmpty = true ) then "" else if ( lstFund_IsEmpty = false ) and ( lstFY_IsEmpty = false ) then criteria_Fund & " AND " & criteria_FY else if ( lstFund_IsEmpty = false ) then criteria_Fund else " WHERE " & criteria_FY, Source = Sql.Database( "SQL5200", "Data", [Query = Query_Begin & Query_End] ) in Source36Views0likes0CommentsRe: How to check if a list is blank and then take action based on the result.
Hi, I don't have a SQL Server anymore to check but that should be close to: et Query_Begin = "SELECT [REC_NO], [FUND_CD], [SFUND_CD], [UNIT_CD] FROM [JRNL_CA]", lstFund_IsEmpty = List.IsEmpty( lstFund ), lstFY_IsEmpty = List.IsEmpty( lstFY ), criteria_Fund = if lstFund_IsEmpty = true then "" else " WHERE [FUND_CD] in (" & Text.Combine( lstFund, "," ) & ")", criteria_FY = if lstFY_IsEmpty = true then "" else " [FY_DC] in (" & Text.Combine( lstFY, "," ) & ")", Query_End = if ( lstFund_IsEmpty = true ) and ( lstFY_IsEmpty = true ) then Query_Begin else if ( lstFund_IsEmpty = false ) and ( lstFY_IsEmpty = false ) then Query_Begin & criteria_Fund & " AND " & criteria_FY else if ( lstFund_IsEmpty = false ) then Query_Begin & criteria_Fund else Query_Begin & " WHERE " & criteria_FY, Source = Sql.Database( "SQL5200", "Data", [Query = Query_End] ) in Source36Views0likes0CommentsRe: Compare two columns and values with array function
Power Query variant: let Source = Table.RemoveColumns( if Table.RowCount( Table1 ) >= Table.RowCount( Table2 ) then Table.NestedJoin( Table1, {"name", "value"}, Table2, {"name", "value"}, "MERGED_TABLE", JoinKind.LeftAnti ) else Table.NestedJoin( Table2, {"name", "value"}, Table1, {"name", "value"}, "MERGED_TABLE", JoinKind.LeftAnti ), {"MERGED_TABLE"} ) in Source83Views1like1CommentRe: How to use F2 for Excel on iPad Pro M4 with latest Magic Keyboard
Notes on https://support.microsoft.com/en-us/office/keyboard-shortcuts-in-excel-1798d9d5-842a-42b8-9c99-9b7213f0040f#PickTab=macOS says The shortcuts in this topic refer to the US keyboard layout. Keys for other layouts might not correspond exactly to the keys on a US keyboard Later on the same page the Control+U shortcut is documented: Notes on https://support.microsoft.com/en-us/office/keyboard-shortcuts-in-excel-1798d9d5-842a-42b8-9c99-9b7213f0040f#bkmk_cellsios&PickTab=Office_for_iOS says If you're familiar with keyboard shortcuts on your macOS computer, the same key combinations work with Excel for iOS using an external keyboard, too So, in principal (expect if doc. error), Control+U should work if you use a US keyboard. But maybe you use a different keyboard layout (???)484Views0likes3CommentsRe: How to use F2 for Excel on iPad Pro M4 with latest Magic Keyboard
Hi (Not a Mac user). Searched the Net with https://www.bing.com/search?q=mac+keyboard+shortcut+for+editing+a+excel+cell&qs=n&form=QBRE&sp=-1&lq=0&pq=mac+keyboard+shortcut+for+editing+a+excel+cell&sc=8-46&sk=&cvid=C4AC1DCC02284B37B6A8416DA704AD29&ghsh=0&ghacc=0&ghpl= => seems to be Control + U340Views0likes1Comment
Recent Blog Articles
No content to show